[escher/view] setFrame and layoutSubviews can be forced

This commit is contained in:
Léa Saviot
2019-10-02 11:22:49 +02:00
parent f85658f5e6
commit 9f018eb9d9
168 changed files with 421 additions and 405 deletions

View File

@@ -44,10 +44,10 @@ View * StoreController::ContentView::subviewAtIndex(int index) {
return views[index];
}
void StoreController::ContentView::layoutSubviews() {
void StoreController::ContentView::layoutSubviews(bool force) {
KDRect dataViewFrame(0, 0, bounds().width(), bounds().height() - (m_displayFormulaInputView ? k_formulaInputHeight : 0));
m_dataView.setFrame(dataViewFrame);
m_formulaInputView.setFrame(formulaFrame());
m_dataView.setFrame(dataViewFrame, force);
m_formulaInputView.setFrame(formulaFrame(), force);
}
KDRect StoreController::ContentView::formulaFrame() const {