[escher] Correct bug in button row controller

Change-Id: If0f0eccb737a85baa3f96f3bfd212b7cc150536f
This commit is contained in:
Émilie Feral
2017-03-01 17:20:37 +01:00
committed by Romain Goyet
parent 3f15ccfa91
commit 3cda2abc52

View File

@@ -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();
}