Skip to content

Commit

Permalink
Traktor: Reverted "no redraw" in UI layouts.
Browse files Browse the repository at this point in the history
  • Loading branch information
apistol78 committed May 22, 2024
1 parent 01f2e33 commit 0e417ea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions code/Ui/FloodLayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ void FloodLayout::update(Widget* widget)
return;

const Rect rc = widget->getInnerRect().inflate(-m_margin.cx, -m_margin.cy);
const WidgetRect wr = { child, rc };
child->setChildRects(&wr, 1, false);
child->setRect(rc);
}

Ref< Widget > FloodLayout::getFirstVisibleChild(Widget* widget)
Expand Down
2 changes: 1 addition & 1 deletion code/Ui/GridLayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void GridLayout::update(Widget* widget)
i++;
}

widget->setChildRects(&widgetRects[0], (uint32_t)widgetRects.size(), false);
widget->setChildRects(&widgetRects[0], (uint32_t)widgetRects.size(), true);
}

}
2 changes: 1 addition & 1 deletion code/Ui/TableLayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ void TableLayout::update(Widget* widget)
}
}

widget->setChildRects(rects.c_ptr(), (uint32_t)rects.size(), false);
widget->setChildRects(rects.c_ptr(), (uint32_t)rects.size(), true);
}

}

0 comments on commit 0e417ea

Please sign in to comment.