From 36fd575b968baed74e634719ecbd23082fbc112b Mon Sep 17 00:00:00 2001 From: omigamedev Date: Thu, 9 May 2019 21:55:23 +0200 Subject: [PATCH] fix quick panel and stroke popup panel --- data/layout.xml | 6 +++--- src/app_layout.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/data/layout.xml b/data/layout.xml index 7db434d..c5e9108 100644 --- a/data/layout.xml +++ b/data/layout.xml @@ -1579,16 +1579,16 @@ Here's a list of what's available in this release. - + - + - + diff --git a/src/app_layout.cpp b/src/app_layout.cpp index 59ed670..da52124 100644 --- a/src/app_layout.cpp +++ b/src/app_layout.cpp @@ -243,7 +243,7 @@ void App::init_sidebar() fp->destroy(); } layout[main_id]->add_child(stroke); - stroke->SetSize(350, YGUndefined); + stroke->SetSize(350, glm::max(100.f, screen.y - pos.y - 50.f)); auto tick = layout[main_id]->add_child(); tick->SetPositioning(YGPositionTypeAbsolute); tick->SetSize(32, 16); @@ -257,7 +257,7 @@ void App::init_sidebar() stroke->m_mouse_ignore = false; stroke->mouse_capture(); auto scroll = stroke->find("scroller"); - scroll->SetHeight(glm::max(100.f, screen.y - pos.y - 200.f)); + //scroll->SetHeight(glm::max(100.f, screen.y - pos.y - 200.f)); layout[main_id]->update(); stroke->on_popup_close = [this, tick](Node*) {