Skip to content

Commit 9b25451

Browse files
committed
editor gui minor fixes
1 parent 27179a0 commit 9b25451

3 files changed

Lines changed: 4 additions & 7 deletions

File tree

Editor/ComponentsWindow.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,8 +598,8 @@ void ComponentsWindow::ResizeLayout()
598598
const wi::scene::Scene& scene = editor->GetCurrentScene();
599599
float padding = 2;
600600
XMFLOAT2 pos = XMFLOAT2(padding, 0);
601-
const float width = GetWidgetAreaSize().x - padding;
602-
const float height = GetWidgetAreaSize().y - padding * 2;
601+
const float width = GetWidgetAreaSize().x;
602+
const float height = GetWidgetAreaSize().y;
603603
editor->main->config.GetSection("layout").Set("components.width", GetSize().x);
604604
editor->main->config.GetSection("layout").Set("entities.height", entityTree.GetSize().y);
605605

Editor/GeneralWindow.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@ void GeneralWindow::ResizeLayout()
10051005
{
10061006
wi::gui::Window::ResizeLayout();
10071007
const float padding = 4;
1008-
float width = GetWidgetAreaSize().x - padding * 2;
1008+
float width = GetWidgetAreaSize().x;
10091009
float y = padding;
10101010
float jump = 20;
10111011
float x_off = 100;
@@ -1080,15 +1080,12 @@ void GeneralWindow::ResizeLayout()
10801080

10811081
y += jump;
10821082

1083-
float prev_width = width;
1084-
width -= padding * 6;
10851083
add(transformToolOpacitySlider);
10861084
add(transformToolDarkenSlider);
10871085
add(bonePickerOpacitySlider);
10881086
add_right(skeletonsVisibleCheckBox);
10891087

10901088
y += jump;
1091-
width = prev_width;
10921089

10931090
add_fullwidth(eliminateCoarseCascadesButton);
10941091
add_fullwidth(ddsConvButton);

Editor/MaterialPickerWindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ void MaterialPickerWindow::ResizeLayout()
8888
}
8989

9090
const float padding = 4;
91-
float width = GetWidgetAreaSize().x - padding * 2;
91+
float width = GetWidgetAreaSize().x;
9292
float y = padding;
9393
float jump = 20;
9494
float x_off = 100;

0 commit comments

Comments
 (0)