Fix the painting gizmos overlaps the view toolbar.

This commit is contained in:
Lukáš Hejl 2024-03-19 20:21:43 +01:00 committed by Lukas Matena
parent 8f5bf424b5
commit 2879f92cab
3 changed files with 3 additions and 3 deletions

View File

@ -103,7 +103,7 @@ void GLGizmoFdmSupports::on_render_input_window(float x, float y, float bottom_l
if (! m_c->selection_info()->model_object()) if (! m_c->selection_info()->model_object())
return; return;
const float approx_height = m_imgui->scaled(25.f); const float approx_height = m_imgui->scaled(26.3f);
y = std::min(y, bottom_limit - approx_height); y = std::min(y, bottom_limit - approx_height);
ImGuiPureWrap::set_next_window_pos(x, y, ImGuiCond_Always); ImGuiPureWrap::set_next_window_pos(x, y, ImGuiCond_Always);

View File

@ -263,7 +263,7 @@ void GLGizmoMmuSegmentation::on_render_input_window(float x, float y, float bott
if (!m_c->selection_info()->model_object()) if (!m_c->selection_info()->model_object())
return; return;
const float approx_height = m_imgui->scaled(22.0f); const float approx_height = m_imgui->scaled(23.7f);
y = std::min(y, bottom_limit - approx_height); y = std::min(y, bottom_limit - approx_height);
ImGuiPureWrap::set_next_window_pos(x, y, ImGuiCond_Always); ImGuiPureWrap::set_next_window_pos(x, y, ImGuiCond_Always);

View File

@ -79,7 +79,7 @@ void GLGizmoSeam::on_render_input_window(float x, float y, float bottom_limit)
if (! m_c->selection_info()->model_object()) if (! m_c->selection_info()->model_object())
return; return;
const float approx_height = m_imgui->scaled(12.5f); const float approx_height = m_imgui->scaled(13.45f);
y = std::min(y, bottom_limit - approx_height); y = std::min(y, bottom_limit - approx_height);
ImGuiPureWrap::set_next_window_pos(x, y, ImGuiCond_Always); ImGuiPureWrap::set_next_window_pos(x, y, ImGuiCond_Always);
ImGuiPureWrap::begin(get_name(), ImGuiWindowFlags_NoMove | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoCollapse); ImGuiPureWrap::begin(get_name(), ImGuiWindowFlags_NoMove | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoCollapse);