mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Fixed visibility of the contents of the GCode fields
This commit is contained in:
		
							parent
							
								
									d19b1162b3
								
							
						
					
					
						commit
						af4e0308ae
					
				
					 2 changed files with 16 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -118,21 +118,34 @@ void OptionsGroup::append_line(const Line& line, wxStaticText**	colored_Label/*
 | 
			
		|||
	if (option_set.size() == 1 && label_width == 0 && option_set.front().opt.full_width &&
 | 
			
		||||
		option_set.front().opt.sidetext.size() == 0 && option_set.front().side_widget == nullptr && 
 | 
			
		||||
		line.get_extra_widgets().size() == 0) {
 | 
			
		||||
		wxBoxSizer* tmp_sizer;
 | 
			
		||||
#ifdef __WXGTK__
 | 
			
		||||
		tmp_sizer = new wxBoxSizer(wxVERTICAL);
 | 
			
		||||
        m_panel->SetSizer(tmp_sizer);
 | 
			
		||||
        m_panel->Layout();
 | 
			
		||||
#else
 | 
			
		||||
        tmp_sizer = sizer;
 | 
			
		||||
#endif /* __WXGTK__ */
 | 
			
		||||
 | 
			
		||||
		const auto& option = option_set.front();
 | 
			
		||||
		const auto& field = build_field(option);
 | 
			
		||||
 | 
			
		||||
		auto btn_sizer = new wxBoxSizer(wxHORIZONTAL);
 | 
			
		||||
		btn_sizer->Add(field->m_Undo_to_sys_btn);
 | 
			
		||||
		btn_sizer->Add(field->m_Undo_btn);
 | 
			
		||||
		sizer->Add(btn_sizer, 0, wxEXPAND | wxALL, 0);
 | 
			
		||||
		tmp_sizer->Add(btn_sizer, 0, wxEXPAND | wxALL, 0);
 | 
			
		||||
		if (is_window_field(field))
 | 
			
		||||
			sizer->Add(field->getWindow(), 0, wxEXPAND | wxALL, wxOSX ? 0 : 5);
 | 
			
		||||
			tmp_sizer->Add(field->getWindow(), 0, wxEXPAND | wxALL, wxOSX ? 0 : 5);
 | 
			
		||||
		if (is_sizer_field(field))
 | 
			
		||||
			sizer->Add(field->getSizer(), 0, wxEXPAND | wxALL, wxOSX ? 0 : 5);
 | 
			
		||||
			tmp_sizer->Add(field->getSizer(), 0, wxEXPAND | wxALL, wxOSX ? 0 : 5);
 | 
			
		||||
		return;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
    auto grid_sizer = m_grid_sizer;
 | 
			
		||||
#ifdef __WXGTK__
 | 
			
		||||
        m_panel->SetSizer(m_grid_sizer);
 | 
			
		||||
        m_panel->Layout();
 | 
			
		||||
#endif /* __WXGTK__ */
 | 
			
		||||
 | 
			
		||||
    // Build a label if we have it
 | 
			
		||||
	wxStaticText* label=nullptr;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -138,8 +138,6 @@ public:
 | 
			
		|||
        static_cast<wxFlexGridSizer*>(m_grid_sizer)->AddGrowableCol(label_width != 0);
 | 
			
		||||
#ifdef __WXGTK__
 | 
			
		||||
        m_panel = new wxPanel( _parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
 | 
			
		||||
        m_panel->SetSizer(m_grid_sizer);
 | 
			
		||||
        m_panel->Layout();
 | 
			
		||||
        sizer->Fit(m_panel);
 | 
			
		||||
        sizer->Add(m_panel, 0, wxEXPAND | wxALL, wxOSX||!staticbox ? 0: 5);
 | 
			
		||||
#else
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue