mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-26 17:20:53 +01:00
[escher] expressionLayoutFieldDidChangeSize reloads only the modalView
Change-Id: Ib406c7d10e2befae9d660e025c84df58a2e9b70c
This commit is contained in:
@@ -87,12 +87,12 @@ bool InputViewController::expressionLayoutFieldDidAbortEditing(ExpressionLayoutF
|
||||
}
|
||||
|
||||
void InputViewController::expressionLayoutFieldDidChangeSize(ExpressionLayoutField * expressionLayoutField) {
|
||||
// Reload the view only if the ExpressionField height actually changes,
|
||||
// i.e. not if the height is already maximal and stays maximal.
|
||||
/* Reload the view only if the ExpressionField height actually changes, i.e.
|
||||
* not if the height is already maximal and stays maximal. */
|
||||
bool newInputViewHeightIsMaximal = m_expressionFieldController.expressionField()->heightIsMaximal();
|
||||
if (!m_inputViewHeightIsMaximal || !newInputViewHeightIsMaximal) {
|
||||
m_inputViewHeightIsMaximal = newInputViewHeightIsMaximal;
|
||||
reloadView();
|
||||
reloadModalViewController();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user