Center the buttons in the key config screen

This commit is contained in:
Henrik Rydgard 2013-08-30 22:42:53 +02:00
parent 30d1dadece
commit 14b7fdc975
2 changed files with 4 additions and 2 deletions

View file

@ -100,7 +100,9 @@ void ControlMapper::Refresh() {
root->Add(new Choice(iter->second, new LinearLayoutParams(200, WRAP_CONTENT)))->OnClick.Handle(this, &ControlMapper::OnReplaceAll);
} else {
// No image? Let's translate.
root->Add(new Choice(c->T(keyName_.c_str()), new LinearLayoutParams(200, WRAP_CONTENT)))->OnClick.Handle(this, &ControlMapper::OnReplaceAll);
Choice *choice = new Choice(c->T(keyName_.c_str()), new LinearLayoutParams(200, WRAP_CONTENT));
choice->SetCentered(true);
root->Add(choice)->OnClick.Handle(this, &ControlMapper::OnReplaceAll);
}
LinearLayout *rightColumn = root->Add(new LinearLayout(ORIENT_VERTICAL, new LinearLayoutParams(1.0f)));

2
native

@ -1 +1 @@
Subproject commit 685a1f7e6f13a4809b3dc1fb845c16a7402c1bff
Subproject commit 9282fa59cadc1faad6c247d413fb96231293acd2