mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[escher] Avoid unnecessary relayouts
This commit is contained in:
@@ -132,7 +132,9 @@ void View::setFrame(KDRect frame) {
|
||||
markRectAsDirty(bounds());
|
||||
// FIXME: m_dirtyRect = bounds(); would be more correct (in case the view is being shrinked)
|
||||
|
||||
layoutSubviews();
|
||||
if (!m_frame.isEmpty()) {
|
||||
layoutSubviews();
|
||||
}
|
||||
}
|
||||
|
||||
KDPoint View::pointFromPointInView(View * view, KDPoint point) {
|
||||
|
||||
Reference in New Issue
Block a user