mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Fixed wrong layout of preview's combos popup windows the first time they are open
This commit is contained in:
		
							parent
							
								
									f9a5ee725d
								
							
						
					
					
						commit
						60b5e0d0d5
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -383,6 +383,7 @@ void create_combochecklist(wxComboCtrl* comboCtrl, const std::string& text, cons | ||||||
| 
 | 
 | ||||||
| 		// the following line messes up the popup size the first time it is shown on wxWidgets 3.1.3
 | 		// the following line messes up the popup size the first time it is shown on wxWidgets 3.1.3
 | ||||||
| //		comboCtrl->EnablePopupAnimation(false);
 | //		comboCtrl->EnablePopupAnimation(false);
 | ||||||
|  | 		popup->SetFont(comboCtrl->GetFont()); | ||||||
| 		comboCtrl->SetPopupControl(popup); | 		comboCtrl->SetPopupControl(popup); | ||||||
| 		wxString title = from_u8(text); | 		wxString title = from_u8(text); | ||||||
| 		max_width = std::max(max_width, 60 + comboCtrl->GetTextExtent(title).x); | 		max_width = std::max(max_width, 60 + comboCtrl->GetTextExtent(title).x); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 enricoturri1966
						enricoturri1966