From X512 <danger_mail@xxxxxxx>:
X512 has uploaded this change for review. (
https://review.haiku-os.org/c/haiku/+/3603 ;)
Change subject: StyledEdit: fix layout
......................................................................
StyledEdit: fix layout
Fixes #16721.
Change-Id: I1ab1489b5cfe6ae0fce4ba1de9d14c69685e5a65
---
M src/apps/stylededit/StyledEditWindow.cpp
1 file changed, 8 insertions(+), 5 deletions(-)
git pull ssh://git.haiku-os.org:22/haiku refs/changes/03/3603/1
diff --git a/src/apps/stylededit/StyledEditWindow.cpp
b/src/apps/stylededit/StyledEditWindow.cpp
index fff3747..a469384 100644
--- a/src/apps/stylededit/StyledEditWindow.cpp
+++ b/src/apps/stylededit/StyledEditWindow.cpp
@@ -1324,11 +1324,14 @@
fSavePanel = NULL;
fSavePanelEncodingMenu = NULL;
- BGroupLayout* layout = new BGroupLayout(B_VERTICAL, 0);
- SetLayout(layout);
- layout->AddView(mainMenu);
- layout->AddView(fScrollView);
- layout->SetInsets(0, 0, -1, -1);
+ BLayoutBuilder::Group<>(this, B_VERTICAL, 0)
+ .Add(mainMenu)
+ .AddGroup(B_VERTICAL, 0)
+ .SetInsets(-1)
+ .Add(fScrollView)
+ .End()
+ .End();
+
SetKeyMenuBar(mainMenu);
}
--
To view, visit https://review.haiku-os.org/c/haiku/+/3603
To unsubscribe, or for help writing mail filters, visit
https://review.haiku-os.org/settings
Gerrit-Project: haiku
Gerrit-Branch: master
Gerrit-Change-Id: I1ab1489b5cfe6ae0fce4ba1de9d14c69685e5a65
Gerrit-Change-Number: 3603
Gerrit-PatchSet: 1
Gerrit-Owner: X512 <danger_mail@xxxxxxx>
Gerrit-MessageType: newchange