Do not open simplify dialog on top of the main toolbar
This commit is contained in:
parent
aae8c7a844
commit
6180e3a89e
2 changed files with 2 additions and 1 deletions
|
@ -812,6 +812,7 @@ public:
|
|||
|
||||
void schedule_extra_frame(int miliseconds);
|
||||
|
||||
float get_main_toolbar_height() { return m_main_toolbar.get_height(); }
|
||||
int get_main_toolbar_item_id(const std::string& name) const { return m_main_toolbar.get_item_id(name); }
|
||||
void force_main_toolbar_left_action(int item_id) { m_main_toolbar.force_left_action(item_id, *this); }
|
||||
void force_main_toolbar_right_action(int item_id) { m_main_toolbar.force_right_action(item_id, *this); }
|
||||
|
|
|
@ -200,7 +200,7 @@ void GLGizmoSimplify::on_render_input_window(float x, float y, float bottom_limi
|
|||
pos.x -= m_gui_cfg->window_offset_x;
|
||||
pos.y -= m_gui_cfg->window_offset_y;
|
||||
// minimal top left value
|
||||
ImVec2 tl(m_gui_cfg->window_padding, m_gui_cfg->window_padding);
|
||||
ImVec2 tl(m_gui_cfg->window_padding, m_gui_cfg->window_padding + m_parent.get_main_toolbar_height());
|
||||
if (pos.x < tl.x) pos.x = tl.x;
|
||||
if (pos.y < tl.y) pos.y = tl.y;
|
||||
// maximal bottom right value
|
||||
|
|
Loading…
Reference in a new issue