mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	FIX: windows position after Maximize on Win32
Change-Id: I02d491e819369009ae188a1dd4cfe98900e52c6b
This commit is contained in:
		
							parent
							
								
									18920df354
								
							
						
					
					
						commit
						45e7443bb3
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -352,6 +352,12 @@ DPIFrame(NULL, wxID_ANY, "", wxDefaultPosition, wxDefaultSize, BORDERLESS_FRAME_ | |||
|         e.Skip(); | ||||
|         }); | ||||
|     setMaxSize(); | ||||
|     this->Bind(wxEVT_MAXIMIZE, [this](auto &e) { | ||||
|         wxDisplay display(wxDisplay::GetFromWindow(this)); | ||||
|         auto pos = display.GetClientArea().GetPosition(); | ||||
|         Move(pos - wxPoint{8, 8}); | ||||
|         e.Skip(); | ||||
|     }); | ||||
| #endif // WIN32
 | ||||
|     // BBS
 | ||||
|     Fit(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 chunmao.guo
						chunmao.guo