mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-21 14:50:44 +01:00
[escher/view] setFrame and layoutSubviews can be forced
This commit is contained in:
@@ -34,17 +34,17 @@ void EditorView::didBecomeFirstResponder() {
|
||||
Container::activeApp()->setFirstResponder(&m_textArea);
|
||||
}
|
||||
|
||||
void EditorView::layoutSubviews() {
|
||||
void EditorView::layoutSubviews(bool force) {
|
||||
m_gutterView.setOffset(0);
|
||||
KDCoordinate gutterWidth = m_gutterView.minimalSizeForOptimalDisplay().width();
|
||||
m_gutterView.setFrame(KDRect(0, 0, gutterWidth, bounds().height()));
|
||||
m_gutterView.setFrame(KDRect(0, 0, gutterWidth, bounds().height()), force);
|
||||
|
||||
m_textArea.setFrame(KDRect(
|
||||
gutterWidth,
|
||||
0,
|
||||
bounds().width()-gutterWidth,
|
||||
bounds().height()
|
||||
));
|
||||
gutterWidth,
|
||||
0,
|
||||
bounds().width()-gutterWidth,
|
||||
bounds().height()),
|
||||
force);
|
||||
}
|
||||
|
||||
/* EditorView::GutterView */
|
||||
|
||||
Reference in New Issue
Block a user