File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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);
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments