fix quick panel and stroke popup panel
This commit is contained in:
@@ -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*) {
|
||||
|
||||
Reference in New Issue
Block a user