mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-22 07:10:40 +01:00
[escher] Correct bug: update the subview layout when resizing the content view
Change-Id: I5941ca52d2b53332ab6d4cd03312862e9f48c71c
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -56,6 +56,7 @@ KDCoordinate TableView::ContentView::columnWidth(int i) const {
|
||||
|
||||
void TableView::ContentView::resizeToFitContent() {
|
||||
setSize(KDSize(width(), height()));
|
||||
layoutSubviews();
|
||||
}
|
||||
|
||||
KDCoordinate TableView::ContentView::height() const {
|
||||
|
||||
Reference in New Issue
Block a user