mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	FIX: [STUDIO-2331] gtk resize popup window
Change-Id: I3ad2c26c5c1fcc94964fa838ce2596b727712195
This commit is contained in:
		
							parent
							
								
									5806263731
								
							
						
					
					
						commit
						60dbf71cd6
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		|  | @ -3,6 +3,10 @@ | |||
| 
 | ||||
| #include <wx/dcgraph.h> | ||||
| 
 | ||||
| #ifdef __WXGTK__ | ||||
| #include <gtk/gtk.h> | ||||
| #endif | ||||
| 
 | ||||
| wxDEFINE_EVENT(EVT_DISMISS, wxCommandEvent); | ||||
| 
 | ||||
| BEGIN_EVENT_TABLE(DropDown, PopupWindow) | ||||
|  | @ -343,6 +347,10 @@ void DropDown::messureSize() | |||
|     szContent.y *= std::min((size_t)15, texts.size()); | ||||
|     szContent.y += texts.size() > 15 ? rowSize.y / 2 : 0; | ||||
|     wxWindow::SetSize(szContent); | ||||
| #ifdef __WXGTK__ | ||||
|     // Gtk has a wrapper window for popup widget
 | ||||
|     gtk_window_resize (GTK_WINDOW (m_widget), szContent.x, szContent.y); | ||||
| #endif | ||||
|     need_sync = false; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 chunmao.guo
						chunmao.guo