Loosen split min size and scroll thumbnail settings
This commit is contained in:
parent
4a5cfeb3ab
commit
e5d76e72d9
6
main.go
6
main.go
|
|
@ -175,10 +175,8 @@ func (l *fixedHSplitLayout) MinSize(objects []fyne.CanvasObject) fyne.Size {
|
||||||
if len(objects) < 2 {
|
if len(objects) < 2 {
|
||||||
return fyne.NewSize(0, 0)
|
return fyne.NewSize(0, 0)
|
||||||
}
|
}
|
||||||
lead := objects[0].MinSize()
|
// Allow the window to shrink without being constrained by child min sizes.
|
||||||
trail := objects[1].MinSize()
|
return fyne.NewSize(0, 0)
|
||||||
// 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
|
// resolveTargetAspect resolves an aspect ratio value or source aspect
|
||||||
|
|
|
||||||
|
|
@ -512,9 +512,7 @@ func buildThumbView(state *appState) fyne.CanvasObject {
|
||||||
leftColumn.Add(listScroll)
|
leftColumn.Add(listScroll)
|
||||||
}
|
}
|
||||||
|
|
||||||
rightColumn := container.NewVBox(
|
rightColumn := container.NewVScroll(settingsPanel)
|
||||||
settingsPanel,
|
|
||||||
)
|
|
||||||
|
|
||||||
mainContent := container.New(&fixedHSplitLayout{ratio: 0.6}, leftColumn, rightColumn)
|
mainContent := container.New(&fixedHSplitLayout{ratio: 0.6}, leftColumn, rightColumn)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user