Make main menu vertically resizable
This commit is contained in:
parent
a7bffb63ee
commit
30bc747f0c
|
|
@ -122,11 +122,14 @@ func BuildMainMenu(modules []ModuleInfo, onModuleClick func(string), onModuleDro
|
||||||
padding := canvas.NewRectangle(color.Transparent)
|
padding := canvas.NewRectangle(color.Transparent)
|
||||||
padding.SetMinSize(fyne.NewSize(0, 4))
|
padding.SetMinSize(fyne.NewSize(0, 4))
|
||||||
|
|
||||||
// Compact body without scrolling
|
sectionsBox := container.NewVBox(sections...)
|
||||||
body := container.NewVBox(
|
scroll := container.NewVScroll(sectionsBox)
|
||||||
header,
|
scroll.SetMinSize(fyne.NewSize(0, 0))
|
||||||
padding,
|
|
||||||
container.NewVBox(sections...),
|
body := container.NewBorder(
|
||||||
|
container.NewVBox(header, padding),
|
||||||
|
nil, nil, nil,
|
||||||
|
scroll,
|
||||||
)
|
)
|
||||||
|
|
||||||
// Wrap with HSplit if sidebar is visible
|
// Wrap with HSplit if sidebar is visible
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user