[expression_editor] Set cursor position according to the layout inserted.

Change-Id: Iac33efdeb4b725ae6007282d323f446992873832
This commit is contained in:
Léa Saviot
2018-01-03 17:19:02 +01:00
parent 89760c0f42
commit 25c036a078
2 changed files with 16 additions and 7 deletions

View File

@@ -63,9 +63,6 @@ bool Controller::privateHandleEvent(Ion::Events::Event event) {
}
ExpressionLayout * newPointedLayout = handleAddEvent(event);
if (newPointedLayout != nullptr) {
m_cursor.setPointedExpressionLayout(newPointedLayout);
m_cursor.setPosition(ExpressionLayoutCursor::Position::Right);
m_cursor.setPositionInside(0);
m_expressionLayout->invalidAllSizesPositionsAndBaselines();
m_view.layoutSubviews();
return true;