From c0fcb19268ce6d09a9a603c181fdb735ed289ddb Mon Sep 17 00:00:00 2001 From: omigamedev Date: Sat, 27 Apr 2019 09:15:01 +0200 Subject: [PATCH] fix presets height on high dpi --- src/node_panel_quick.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_panel_quick.cpp b/src/node_panel_quick.cpp index aaba695..88e66dd 100644 --- a/src/node_panel_quick.cpp +++ b/src/node_panel_quick.cpp @@ -147,7 +147,7 @@ void NodePanelQuick::handle_button_brush_click(Node* button) tick->set_image("data/ui/popup-tick.png"); tick->m_scale = { 1, 1 }; - float hh = popup->m_container->m_children.size() > 10 ? (screen.y / App::I.zoom - 90.f) : 400.f; + float hh = popup->m_container->m_children.size() > 10 ? (screen.y - 90.f) : 400.f; popup->SetHeight(glm::max(hh, 400.f)); popup->SetPositioning(YGPositionTypeAbsolute); popup->SetPosition(popup_pos);