[escher] Correct bug: update the subview layout when resizing the content view

Change-Id: I5941ca52d2b53332ab6d4cd03312862e9f48c71c
This commit is contained in:
Émilie Feral
2016-10-12 15:36:30 +02:00
parent 7ba8c9e0e8
commit ab37a15b3b
2 changed files with 5 additions and 2 deletions

View File

@@ -112,8 +112,10 @@ void ScrollView::updateScrollIndicator() {
}
void ScrollView::setContentOffset(KDPoint offset) {
m_offset = offset;
layoutSubviews();
if (offset != m_offset) {
m_offset = offset;
layoutSubviews();
}
}
KDPoint ScrollView::contentOffset() {