[solver] EquationListView: clean setBraceStyle to always re-layout

This commit is contained in:
Émilie Feral
2019-02-22 15:38:10 +01:00
parent be76742bc3
commit f8e9fdef65
2 changed files with 4 additions and 5 deletions

View File

@@ -22,10 +22,10 @@ EquationListView::EquationListView(Responder * parentResponder, TableViewDataSou
}
void EquationListView::setBraceStyle(BraceStyle style) {
if (m_braceStyle != style) {
m_braceStyle = style;
layoutSubviews();
}
/* Even if the brace style does not change, we want to relayout in case the
* size of the braced object has changed. */
m_braceStyle = style;
layoutSubviews();
}
void EquationListView::scrollViewDidChangeOffset(ScrollViewDataSource * scrollViewDataSource) {