mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-20 22:30:30 +01:00
[escher] Fix bug in text field (scrolling issue when deleting characters)
Change-Id: I5ac63e7f3c78fd6e87f7de3e3d2d25cac58e3417
This commit is contained in:
@@ -380,6 +380,9 @@ void TextField::scrollToAvoidWhiteSpace() {
|
||||
}
|
||||
KDCoordinate cursorWidth = m_contentView.subviewAtIndex(0)->minimalSizeForOptimalDisplay().width();
|
||||
m_manualScrolling = textLength() * m_contentView.charWidth()+cursorWidth-bounds().width();
|
||||
if (m_manualScrolling < 0) {
|
||||
m_manualScrolling = 0;
|
||||
}
|
||||
setContentOffset(KDPoint(m_manualScrolling, 0));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user