mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-23 15:50:49 +01:00
[escher] TextField: force layout after scroll reload when the content
size of scrollview might have changed
This commit is contained in:
committed by
EmilieNumworks
parent
4af6e71e21
commit
2b0b40d6d6
@@ -189,8 +189,8 @@ KDSize ScrollView::contentSize() {
|
||||
return m_contentView->minimalSizeForOptimalDisplay();
|
||||
}
|
||||
|
||||
void ScrollView::setContentOffset(KDPoint offset) {
|
||||
if (m_dataSource->setOffset(offset)) {
|
||||
void ScrollView::setContentOffset(KDPoint offset, bool forceRelayout) {
|
||||
if (m_dataSource->setOffset(offset) || forceRelayout) {
|
||||
layoutSubviews();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user