fix relayout subtree logic
This commit is contained in:
parent
abbedd9db1
commit
9b2655beb2
1 changed files with 1 additions and 3 deletions
|
@ -202,9 +202,7 @@ void Widget::handle_relayout_subtree(RelayoutSubtreeEvent &event) {
|
|||
|
||||
m_window_relative = compute_window_relative();
|
||||
|
||||
if (m_layout) {
|
||||
m_layout->run();
|
||||
} else {
|
||||
if (!m_layout || !m_layout->run()) {
|
||||
for (auto child : m_children) {
|
||||
child->dispatch_event(event);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue