remove unused test code, fix presets panel height on high dp, update quick panel on alt+rdrag resize

This commit is contained in:
2019-03-12 14:52:58 +01:00
parent 89cd70fc9a
commit 0c71feedf7
3 changed files with 2 additions and 24 deletions

View File

@@ -139,7 +139,7 @@ void NodePanelQuick::handle_button_brush_click(Node* button)
tick->SetSize(16, 32);
tick->SetPosition(pos.x, pos.y + (button->m_size.y - 32) * 0.5f);
tick->set_image("data/ui/popup-tick.png");
float hh = App::I.presets->m_container->m_children.size() > 10 ? App::I.height - 90.f * App::I.zoom : 400.f;
float hh = App::I.presets->m_container->m_children.size() > 10 ? (App::I.height / App::I.zoom - 90.f) : 400.f;
App::I.presets->SetHeight(glm::max(hh, 400.f));
root()->update();
if ((pos.y + App::I.presets->m_size.y) > screen.y)