mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	Decrease min height for ObjectList (related to #5462)
This commit is contained in:
		
							parent
							
								
									240dc8b697
								
							
						
					
					
						commit
						8849aa77dc
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -261,10 +261,10 @@ ObjectList::~ObjectList() | |||
| void ObjectList::set_min_height() | ||||
| { | ||||
|     /* Temporary workaround for the correct behavior of the Scrolled sidebar panel:
 | ||||
|     * change min hight of object list to the normal min value (35 * wxGetApp().em_unit()) | ||||
|     * change min hight of object list to the normal min value (20 * wxGetApp().em_unit()) | ||||
|     * after first whole Mainframe updating/layouting | ||||
|     */ | ||||
|     const int list_min_height = 35 * wxGetApp().em_unit(); | ||||
|     const int list_min_height = 20 * wxGetApp().em_unit(); | ||||
|     if (this->GetMinSize().GetY() > list_min_height) | ||||
|         this->SetMinSize(wxSize(-1, list_min_height)); | ||||
| } | ||||
|  | @ -274,7 +274,7 @@ void ObjectList::create_objects_ctrl() | |||
| { | ||||
|     /* Temporary workaround for the correct behavior of the Scrolled sidebar panel:
 | ||||
|      * 1. set a height of the list to some big value  | ||||
|      * 2. change it to the normal min value (15 * wxGetApp().em_unit()) after first whole Mainframe updating/layouting | ||||
|      * 2. change it to the normal min value (20 * wxGetApp().em_unit()) after first whole Mainframe updating/layouting | ||||
|      */ | ||||
|     SetMinSize(wxSize(-1, 3000)); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 YuSanka
						YuSanka