fix high dpi presets panel size

This commit is contained in:
2019-02-28 09:40:16 +01:00
parent 5575769651
commit d0071de461
2 changed files with 4 additions and 5 deletions

View File

@@ -282,7 +282,7 @@ void NodePanelStroke::init_controls()
tick->SetSize(16, 32);
tick->SetPosition(pos.x, pos.y + (m_preset_button->m_size.y - 32) * 0.5f);
tick->set_image("data/ui/popup-tick.png");
float hh = m_presets_popup->m_container->m_children.size() > 10 ? App::I.height * .75f : 400.f;
float hh = m_presets_popup->m_container->m_children.size() > 10 ? App::I.height / App::I.zoom * .75f : 400.f;
m_presets_popup->SetSize(300, glm::max(hh, 400.f));
root()->update();
if ((pos.y + m_presets_popup->m_size.y) > screen.y)