mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	FIX:fixed some issues with object/part table
1.can stretch the window vertically 2.the lock icon is not in the correct position Change-Id: Ibb4d4d9d1238c8613526a3c59b6379b18dfa694f
This commit is contained in:
		
							parent
							
								
									f3744b8169
								
							
						
					
					
						commit
						45b9406b63
					
				
					 1 changed files with 19 additions and 3 deletions
				
			
		|  | @ -2681,6 +2681,7 @@ ObjectTablePanel::ObjectTablePanel( wxWindow* parent, wxWindowID id, const wxPoi | |||
|     SetSize(wxSize(-1, FromDIP(450))); | ||||
|     SetMinSize(wxSize(-1, FromDIP(450))); | ||||
|     SetMaxSize(wxSize(-1, FromDIP(450))); | ||||
|      | ||||
| 
 | ||||
|     //m_search_line = new wxTextCtrl(this, wxID_ANY, "", wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER);
 | ||||
| 
 | ||||
|  | @ -3228,7 +3229,7 @@ void ObjectTablePanel::resetAllValuesInSideWindow(int row, bool is_object, Model | |||
| // ObjectTableDialog
 | ||||
| // ----------------------------------------------------------------------------
 | ||||
| ObjectTableDialog::ObjectTableDialog(wxWindow* parent, Plater* platerObj, Model *modelObj, wxSize maxSize) | ||||
|     : GUI::DPIDialog(parent, wxID_ANY, _L("Object/Part Setting"), wxDefaultPosition, wxDefaultSize, wxCAPTION | wxCLOSE_BOX) | ||||
|     : GUI::DPIDialog(parent, wxID_ANY, _L("Object/Part Setting"), wxDefaultPosition, wxDefaultSize, wxCAPTION | wxCLOSE_BOX | wxRESIZE_BORDER) | ||||
|     , | ||||
|     m_model(modelObj), m_plater(platerObj) | ||||
| { | ||||
|  | @ -3369,12 +3370,27 @@ void ObjectTableDialog::OnText(wxKeyEvent &evt) | |||
| 
 | ||||
| void ObjectTableDialog::OnSize(wxSizeEvent& event) | ||||
| { | ||||
|     wxSize new_size = event.GetSize(); | ||||
|    /* wxSize new_size = event.GetSize();
 | ||||
|     if ((new_size.GetWidth() > g_dialog_max_width) || (new_size.GetHeight() > g_dialog_max_height)) { | ||||
|         int width  = (new_size.GetWidth() > g_dialog_max_width) ? new_size.GetWidth() : g_dialog_max_width; | ||||
|         int width = (new_size.GetWidth() > g_dialog_max_width) ? new_size.GetWidth() : g_dialog_max_width; | ||||
|         int height = (new_size.GetHeight() > g_dialog_max_height) ? new_size.GetHeight() : g_dialog_max_height; | ||||
|         this->SetMaxSize(wxSize(width, height)); | ||||
|     }*/ | ||||
| 
 | ||||
|     if (event.GetSize().y <= FromDIP(450)) { | ||||
|         SetMaxSize(wxSize(GetSize().x, -1)); | ||||
|         SetMinSize(wxSize(GetSize().x, -1)); | ||||
|         SetSize(wxSize(GetSize().x, -1)); | ||||
|         return; | ||||
|     } | ||||
|     SetMaxSize(wxSize(GetSize().x, -1)); | ||||
|     SetMinSize(wxSize(GetSize().x, -1)); | ||||
|     SetSize(wxSize(GetSize().x, -1)); | ||||
| 
 | ||||
|     m_obj_panel->SetSize(wxSize(-1, GetSize().y)); | ||||
|     m_obj_panel->SetMinSize(wxSize(-1, GetSize().y)); | ||||
|     m_obj_panel->SetMaxSize(wxSize(-1, GetSize().y)); | ||||
| 
 | ||||
|     event.Skip(); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 tao wang
						tao wang