mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[escher] Correct bug in button row controller
Change-Id: If0f0eccb737a85baa3f96f3bfd212b7cc150536f
This commit is contained in:
committed by
Romain Goyet
parent
3f15ccfa91
commit
3cda2abc52
@@ -187,7 +187,6 @@ const char * ButtonRowController::title() const {
|
||||
}
|
||||
|
||||
void ButtonRowController::didBecomeFirstResponder(){
|
||||
m_contentView.layoutSubviews();
|
||||
app()->setFirstResponder(m_contentView.mainViewController());
|
||||
}
|
||||
|
||||
@@ -218,6 +217,9 @@ bool ButtonRowController::handleEvent(Ion::Events::Event event) {
|
||||
}
|
||||
|
||||
void ButtonRowController::viewWillAppear() {
|
||||
/* We need to layout subviews at first appearance because the number of
|
||||
* buttons might have changed between 2 appearences. */
|
||||
m_contentView.layoutSubviews();
|
||||
m_contentView.mainViewController()->viewWillAppear();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user