From 0e74f2837969595413d4567f8feee976f9afb210 Mon Sep 17 00:00:00 2001 From: Stu Leak Date: Wed, 24 Dec 2025 03:14:31 -0500 Subject: [PATCH] Stop split layout from expanding window --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index a34f249..8a48b4b 100644 --- a/main.go +++ b/main.go @@ -170,7 +170,8 @@ func (l *fixedHSplitLayout) MinSize(objects []fyne.CanvasObject) fyne.Size { } lead := objects[0].MinSize() trail := objects[1].MinSize() - return fyne.NewSize(lead.Width+trail.Width, fyne.Max(lead.Height, trail.Height)) + // Avoid forcing the window to expand to the sum of both sides. + return fyne.NewSize(fyne.Max(lead.Width, trail.Width), fyne.Max(lead.Height, trail.Height)) } // resolveTargetAspect resolves an aspect ratio value or source aspect