[escher] Avoid unnecessary relayouts

This commit is contained in:
Émilie Feral
2019-03-11 16:43:03 +01:00
parent 80e2879cb7
commit cef106b23d

View File

@@ -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) {