Fix music player with RTL song names.
This commit is contained in:
		
							parent
							
								
									d756ecc609
								
							
						
					
					
						commit
						73e2cc96d1
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -859,7 +859,7 @@ void Widget::updateLabelsGeometry() {
 | 
			
		|||
	const auto widthForName = width()
 | 
			
		||||
		- left
 | 
			
		||||
		- getNameRight();
 | 
			
		||||
	_nameLabel->resizeToWidth(widthForName);
 | 
			
		||||
	_nameLabel->resizeToNaturalWidth(widthForName);
 | 
			
		||||
	_nameLabel->moveToLeft(left, st::mediaPlayerNameTop - st::mediaPlayerName.style.font->ascent);
 | 
			
		||||
 | 
			
		||||
	const auto right = getTimeRight();
 | 
			
		||||
| 
						 | 
				
			
			@ -1056,8 +1056,8 @@ void Widget::handleSongChange() {
 | 
			
		|||
			.textWithEntities(true);
 | 
			
		||||
	}
 | 
			
		||||
	_nameLabel->setMarkedText(textWithEntities);
 | 
			
		||||
 | 
			
		||||
	handlePlaylistUpdate();
 | 
			
		||||
	updateLabelsGeometry();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Widget::handlePlaylistUpdate() {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue