Expander: Put scroll view flush to borders
* To avoid "micro-padding" around the scrollview, use a negative inset to have the scrollview join borders with the window. * Make it a regular B_DOCUMENT_WINDOW to have a full-sized resizing corner. Fixes #19915 Change-Id: I879eca719f91f2ae67236ecfb4cb8be1b280f2fc Reviewed-on: https://review.haiku-os.org/c/haiku/+/10267 Tested-by: Commit checker robot <[email protected]> Reviewed-by: waddlesplash <[email protected]> Reviewed-by: Axel Dörfler <[email protected]>
This commit is contained in:
@@ -88,7 +88,7 @@ private:
|
||||
ExpanderWindow::ExpanderWindow(BRect frame, const entry_ref* ref,
|
||||
BMessage* settings)
|
||||
:
|
||||
BWindow(frame, B_TRANSLATE_SYSTEM_NAME("Expander"), B_TITLED_WINDOW,
|
||||
BWindow(frame, B_TRANSLATE_SYSTEM_NAME("Expander"), B_DOCUMENT_WINDOW,
|
||||
B_NORMAL_WINDOW_FEEL),
|
||||
fSourcePanel(NULL),
|
||||
fDestPanel(NULL),
|
||||
@@ -152,7 +152,9 @@ ExpanderWindow::ExpanderWindow(BRect frame, const entry_ref* ref,
|
||||
.End()
|
||||
.SetInsets(B_USE_WINDOW_SPACING)
|
||||
.End()
|
||||
.Add(fScrollView);
|
||||
.AddGroup(B_VERTICAL, 0)
|
||||
.SetInsets(-2, 0, -2, -2)
|
||||
.Add(fScrollView);
|
||||
|
||||
pathLayout->SetExplicitMaxSize(BSize(B_SIZE_UNLIMITED, B_SIZE_UNSET));
|
||||
size = GetLayout()->View()->PreferredSize();
|
||||
|
||||
Reference in New Issue
Block a user