Fixed sliders in footer in statistics info while restoring state.
This commit is contained in:
		
							parent
							
								
									29f8493a82
								
							
						
					
					
						commit
						d0875a1178
					
				
					 1 changed files with 4 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -282,9 +282,10 @@ ChartWidget::Footer::Footer(not_null<Ui::RpWidget*> parent)
 | 
			
		|||
	Qt::RoundCap) {
 | 
			
		||||
	sizeValue(
 | 
			
		||||
	) | rpl::take(2) | rpl::start_with_next([=](const QSize &s) {
 | 
			
		||||
		moveSide(false, s.width());
 | 
			
		||||
		moveSide(true, 0);
 | 
			
		||||
		update();
 | 
			
		||||
		const auto current = xPercentageLimits();
 | 
			
		||||
		if (current.min == current.max) {
 | 
			
		||||
			setXPercentageLimits({ 0., 1. });
 | 
			
		||||
		}
 | 
			
		||||
	}, lifetime());
 | 
			
		||||
 | 
			
		||||
	mouseStateChanged(
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue