mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-24 08:10:50 +01:00
[escher] Fix horizontal scroll in ELField
Change-Id: Id2502f84514a1aeb76c84f7648dea110b0676ee4
This commit is contained in:
@@ -36,7 +36,7 @@ void ExpressionLayoutField::scrollToCursor() {
|
||||
KDCoordinate underBaseline = m_contentView.cursorRect().height() - cursorBaseline;
|
||||
KDCoordinate minAroundBaseline = min(cursorBaseline, underBaseline);
|
||||
minAroundBaseline = min(minAroundBaseline, bounds().height() / 2);
|
||||
KDRect balancedRect(0, m_contentView.cursorRect().y() + cursorBaseline - minAroundBaseline, Poincare::ExpressionLayoutCursor::k_cursorWidth, 2 * minAroundBaseline);
|
||||
KDRect balancedRect(m_contentView.cursorRect().x(), m_contentView.cursorRect().y() + cursorBaseline - minAroundBaseline, Poincare::ExpressionLayoutCursor::k_cursorWidth, 2 * minAroundBaseline);
|
||||
scrollToContentRect(balancedRect, true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user