mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -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)
|
||||
float content_w = 1 + ImGui::GetWindowContentRegionWidth();
|
||||
if (content_w < label_len)
|
||||
if (ImGui::GetWindowContentRegionWidth() + 2.0f * ImGui::GetStyle().WindowPadding.x != ImGui::CalcWindowExpectedSize(ImGui::GetCurrentWindow()).x)
|
||||
m_canvas.request_extra_frame();
|
||||
|
||||
imgui.end();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue