mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 02:00:05 +00:00 
			
		
		
		
	Prevent elevation buttons from normalizing to a very large size
This commit is contained in:
		
							parent
							
								
									97a1d26370
								
							
						
					
					
						commit
						a87453ed2e
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -111,7 +111,8 @@ void Level2SettingsWidgetImpl::NormalizeElevationButtons() | |||
|                     } | ||||
|                  }); | ||||
| 
 | ||||
|    if (elevationCutMaxWidth > 0) | ||||
|    // Don't resize the buttons if the size is out of expected ranges
 | ||||
|    if (0 < elevationCutMaxWidth && elevationCutMaxWidth < 100) | ||||
|    { | ||||
|       std::for_each(elevationButtons_.cbegin(), | ||||
|                     elevationButtons_.cend(), | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat