mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-26 01:00:50 +01:00
[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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user