fix quick panel and stroke popup panel

This commit is contained in:
2019-05-09 21:55:23 +02:00
parent 898afe9052
commit 36fd575b96
2 changed files with 5 additions and 5 deletions

View File

@@ -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<NodeImage>();
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<NodeScroll>("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*) {