Make main menu vertically scrollable for 800x600 windows
- Wrap module sections in NewVScroll container - Use border layout with fixed header and scrollable content - Allows all modules to be accessible within 800x600 window - Header and controls remain visible while content scrolls
This commit is contained in:
parent
30fc6e2cb5
commit
efdd5bcdf3
|
|
@ -106,10 +106,15 @@ func BuildMainMenu(modules []ModuleInfo, onModuleClick func(string), onModuleDro
|
||||||
padding := canvas.NewRectangle(color.Transparent)
|
padding := canvas.NewRectangle(color.Transparent)
|
||||||
padding.SetMinSize(fyne.NewSize(0, 14))
|
padding.SetMinSize(fyne.NewSize(0, 14))
|
||||||
|
|
||||||
body := container.NewVBox(
|
// Make the sections scrollable
|
||||||
header,
|
sectionsContent := container.NewVBox(sections...)
|
||||||
padding,
|
scroll := container.NewVScroll(sectionsContent)
|
||||||
container.NewVBox(sections...),
|
|
||||||
|
// Use border layout with fixed header and scrollable content
|
||||||
|
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