[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

@@ -52,11 +52,11 @@ View * SequenceTitleCell::subviewAtIndex(int index) {
return &m_titleTextView;
}
void SequenceTitleCell::layoutSubviews() {
void SequenceTitleCell::layoutSubviews(bool force) {
if (m_orientation == Orientation::VerticalIndicator) {
m_titleTextView.setAlignment(k_verticalOrientationHorizontalAlignment, verticalAlignment());
}
m_titleTextView.setFrame(subviewFrame());
m_titleTextView.setFrame(subviewFrame(), force);
}
float SequenceTitleCell::verticalAlignmentGivenExpressionBaselineAndRowHeight(KDCoordinate expressionBaseline, KDCoordinate rowHeight) const {