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