Align DialogOverlay buttons to the right.

This commit is contained in:
casey 2016-09-02 12:17:43 -07:00
parent 38912b9e63
commit 1b90bb5999
2 changed files with 2 additions and 1 deletions

View File

@ -52,6 +52,7 @@ DialogOverlay::DialogOverlay() {
this->autoDismiss = true;
this->shortcuts.reset(new ShortcutsWindow());
this->shortcuts->SetAlignment(text::AlignRight);
this->AddWindow(this->shortcuts);
}

View File

@ -90,7 +90,7 @@ void ShortcutsWindow::UpdateContentColor() {
}
size_t ShortcutsWindow::CalculateLeftPadding() {
if (this->alignment = text::AlignLeft) {
if (this->alignment == text::AlignLeft) {
return 0;
}