[escher] Reorder actions to first do all frame layouts and then all

"become first responder" (Thereby, enable to select a cell in
becomefirstresponder without any weird scrolling due to wrong framing)

Change-Id: Ie5ca7555fce3575dcf0488e124adf0677155c383
This commit is contained in:
Émilie Feral
2017-01-31 15:53:24 +01:00
parent f3e9e29045
commit 29678a23db
6 changed files with 13 additions and 13 deletions

View File

@@ -110,6 +110,10 @@ void StackViewController::setupActiveViewController() {
}
void StackViewController::didBecomeFirstResponder() {
if (m_rootViewController != nullptr) {
push(m_rootViewController, m_textColor, m_backgroundColor, m_separatorColor);
m_rootViewController = nullptr;
}
ViewController * vc = m_children[m_numberOfChildren-1];
app()->setFirstResponder(vc);
}
@@ -123,9 +127,5 @@ bool StackViewController::handleEvent(Ion::Events::Event event) {
}
View * StackViewController::view() {
if (m_rootViewController != nullptr) {
push(m_rootViewController, m_textColor, m_backgroundColor, m_separatorColor);
m_rootViewController = nullptr;
}
return &m_view;
}