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();
|
m_window_relative = compute_window_relative();
|
||||||
|
|
||||||
if (m_layout) {
|
if (!m_layout || !m_layout->run()) {
|
||||||
m_layout->run();
|
|
||||||
} else {
|
|
||||||
for (auto child : m_children) {
|
for (auto child : m_children) {
|
||||||
child->dispatch_event(event);
|
child->dispatch_event(event);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue