diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-08-17 14:35:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-17 14:35:55 +0200 |
commit | c4e9f6562fe70aefcd6de0dc1b2134fd8422264f (patch) | |
tree | fa7b803985ba42fa9f6915b3ad5975f30027717e /editor | |
parent | 22d21ebef0b28ee519f5806c092ca5cfcd0cea4e (diff) | |
parent | dea845b65c37845898c5554aba20729bdeb6ba42 (diff) |
Merge pull request #10393 from groud/fix_progress_dialog
Fix progress dialog's bars overflowing.
Diffstat (limited to 'editor')
-rw-r--r-- | editor/progress_dialog.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/editor/progress_dialog.cpp b/editor/progress_dialog.cpp index 51a40faf37..980afee447 100644 --- a/editor/progress_dialog.cpp +++ b/editor/progress_dialog.cpp @@ -155,9 +155,10 @@ void ProgressDialog::_popup() { Ref<StyleBox> style = get_stylebox("panel", "PopupMenu"); ms += style->get_minimum_size(); - for (int i = 0; i < 4; i++) { - main->set_margin(Margin(i), style->get_margin(Margin(i))); - } + main->set_margin(MARGIN_LEFT, style->get_margin(MARGIN_LEFT)); + main->set_margin(MARGIN_RIGHT, -style->get_margin(MARGIN_RIGHT)); + main->set_margin(MARGIN_TOP, style->get_margin(MARGIN_TOP)); + main->set_margin(MARGIN_BOTTOM, -style->get_margin(MARGIN_BOTTOM)); popup_centered(ms); } |