Merge pull request #10393 from groud/fix_progress_dialog
Fix progress dialog's bars overflowing.
This commit is contained in:
commit
c4e9f6562f
1 changed files with 4 additions and 3 deletions
|
@ -155,9 +155,10 @@ void ProgressDialog::_popup() {
|
||||||
|
|
||||||
Ref<StyleBox> style = get_stylebox("panel", "PopupMenu");
|
Ref<StyleBox> style = get_stylebox("panel", "PopupMenu");
|
||||||
ms += style->get_minimum_size();
|
ms += style->get_minimum_size();
|
||||||
for (int i = 0; i < 4; i++) {
|
main->set_margin(MARGIN_LEFT, style->get_margin(MARGIN_LEFT));
|
||||||
main->set_margin(Margin(i), style->get_margin(Margin(i)));
|
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);
|
popup_centered(ms);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue