[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

@@ -113,6 +113,9 @@ void TabViewController::setSelectedTab(int8_t i) {
void TabViewController::didBecomeFirstResponder() {
setSelectedTab(m_activeChildIndex);
if (m_activeChildIndex < 0) {
setActiveTab(0);
}
}
void TabViewController::didResignFirstResponder() {
@@ -128,9 +131,6 @@ View * TabViewController::view() {
m_view.m_tabView.addTabNamed(m_children[i]->title());
}
}
if (m_activeChildIndex < 0) {
setActiveTab(0);
}
return &m_view;
}