mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 10:17:55 -06:00
Fixed labels auto-sizing
This commit is contained in:
parent
00737948e6
commit
3981e25f75
2 changed files with 3 additions and 2 deletions
|
@ -1362,8 +1362,7 @@ void GLCanvas3D::Labels::render(const std::vector<const PrintInstance*>& sorted_
|
||||||
}
|
}
|
||||||
|
|
||||||
// force re-render while the windows gets to its final size (it takes several frames)
|
// force re-render while the windows gets to its final size (it takes several frames)
|
||||||
float content_w = 1 + ImGui::GetWindowContentRegionWidth();
|
if (ImGui::GetWindowContentRegionWidth() + 2.0f * ImGui::GetStyle().WindowPadding.x != ImGui::CalcWindowExpectedSize(ImGui::GetCurrentWindow()).x)
|
||||||
if (content_w < label_len)
|
|
||||||
m_canvas.request_extra_frame();
|
m_canvas.request_extra_frame();
|
||||||
|
|
||||||
imgui.end();
|
imgui.end();
|
||||||
|
|
|
@ -3905,6 +3905,8 @@ void ObjectList::OnEditingDone(wxDataViewEvent &event)
|
||||||
// Here the last active column is forgotten, so when leaving the editing mode, the next mouse click will not enter the editing mode of the newly selected column.
|
// Here the last active column is forgotten, so when leaving the editing mode, the next mouse click will not enter the editing mode of the newly selected column.
|
||||||
m_last_selected_column = -1;
|
m_last_selected_column = -1;
|
||||||
#endif //__WXMSW__
|
#endif //__WXMSW__
|
||||||
|
|
||||||
|
wxGetApp().plater()->set_current_canvas_as_dirty();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ObjectList::show_multi_selection_menu()
|
void ObjectList::show_multi_selection_menu()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue