Loosen split min size and scroll thumbnail settings

This commit is contained in:
Stu Leak 2026-01-04 02:12:45 -05:00
parent 4861052585
commit a757696258
2 changed files with 3 additions and 7 deletions

View File

@ -175,10 +175,8 @@ func (l *fixedHSplitLayout) MinSize(objects []fyne.CanvasObject) fyne.Size {
if len(objects) < 2 {
return fyne.NewSize(0, 0)
}
lead := objects[0].MinSize()
trail := objects[1].MinSize()
// 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))
// Allow the window to shrink without being constrained by child min sizes.
return fyne.NewSize(0, 0)
}
// resolveTargetAspect resolves an aspect ratio value or source aspect

View File

@ -512,9 +512,7 @@ func buildThumbView(state *appState) fyne.CanvasObject {
leftColumn.Add(listScroll)
}
rightColumn := container.NewVBox(
settingsPanel,
)
rightColumn := container.NewVScroll(settingsPanel)
mainContent := container.New(&fixedHSplitLayout{ratio: 0.6}, leftColumn, rightColumn)