Loosen split min size and scroll thumbnail settings
This commit is contained in:
parent
4861052585
commit
a757696258
6
main.go
6
main.go
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user