mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	FIX: remove padding of params dialog
Change-Id: Id567505f5d0e35f5641151f7b4e1d874c769545f
This commit is contained in:
		
							parent
							
								
									9bd0db371d
								
							
						
					
					
						commit
						9d2d28ca62
					
				
					 1 changed files with 3 additions and 4 deletions
				
			
		|  | @ -21,11 +21,10 @@ ParamsDialog::ParamsDialog(wxWindow * parent) | ||||||
| 	m_panel = new ParamsPanel(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBK_LEFT | wxTAB_TRAVERSAL); | 	m_panel = new ParamsPanel(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBK_LEFT | wxTAB_TRAVERSAL); | ||||||
| 
 | 
 | ||||||
| 	auto* topsizer = new wxBoxSizer(wxVERTICAL); | 	auto* topsizer = new wxBoxSizer(wxVERTICAL); | ||||||
| 	topsizer->Add(m_panel, 1, wxALL | wxEXPAND, 5, NULL); | 	topsizer->Add(m_panel, 1, wxALL | wxEXPAND, 0, NULL); | ||||||
| 	topsizer->Add(-1, 5); |  | ||||||
| 
 | 
 | ||||||
| 	SetSizerAndFit(topsizer); | 	SetSizerAndFit(topsizer); | ||||||
| 	SetSize({100 * em_unit(), 60 * em_unit()}); | 	SetSize({70 * em_unit(), 60 * em_unit()}); | ||||||
| 
 | 
 | ||||||
| 	Layout(); | 	Layout(); | ||||||
| 	Center(); | 	Center(); | ||||||
|  | @ -70,7 +69,7 @@ void ParamsDialog::Popup() | ||||||
| void ParamsDialog::on_dpi_changed(const wxRect &suggested_rect) | void ParamsDialog::on_dpi_changed(const wxRect &suggested_rect) | ||||||
| { | { | ||||||
| 	Fit(); | 	Fit(); | ||||||
| 	SetSize({100 * em_unit(), 60 * em_unit()}); | 	SetSize({70 * em_unit(), 60 * em_unit()}); | ||||||
| 	m_panel->msw_rescale(); | 	m_panel->msw_rescale(); | ||||||
| 	Refresh(); | 	Refresh(); | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 chunmao.guo
						chunmao.guo