fix padding of buttons in settings

This commit is contained in:
marmare314 2023-05-17 17:25:21 +02:00
parent 37791ada99
commit 76eac08783

View file

@ -236,7 +236,6 @@ CUI::EPopupMenuFunctionResult CEditor::PopupMenuSettings(void *pContext, CUIRect
View.HSplitTop(12.0f, &Slot, &View); View.HSplitTop(12.0f, &Slot, &View);
{ {
Slot.VMargin(5.0f, &Slot); Slot.VMargin(5.0f, &Slot);
Slot.VSplitRight(5.0f, &Slot, nullptr); // right margin
CUIRect Label, Selector; CUIRect Label, Selector;
Slot.VSplitMid(&Label, &Selector); Slot.VSplitMid(&Label, &Selector);
@ -260,7 +259,6 @@ CUI::EPopupMenuFunctionResult CEditor::PopupMenuSettings(void *pContext, CUIRect
View.HSplitTop(12.0f, &Slot, &View); View.HSplitTop(12.0f, &Slot, &View);
{ {
Slot.VMargin(5.0f, &Slot); Slot.VMargin(5.0f, &Slot);
Slot.VSplitRight(5.0f, &Slot, nullptr); // right margin
CUIRect Label, Selector; CUIRect Label, Selector;
Slot.VSplitMid(&Label, &Selector); Slot.VSplitMid(&Label, &Selector);
@ -284,7 +282,6 @@ CUI::EPopupMenuFunctionResult CEditor::PopupMenuSettings(void *pContext, CUIRect
View.HSplitTop(12.0f, &Slot, &View); View.HSplitTop(12.0f, &Slot, &View);
{ {
Slot.VMargin(5.0f, &Slot); Slot.VMargin(5.0f, &Slot);
Slot.VSplitRight(5.0f, &Slot, nullptr); // right margin
CUIRect Label, Selector; CUIRect Label, Selector;
Slot.VSplitMid(&Label, &Selector); Slot.VSplitMid(&Label, &Selector);