fix(ui): Wrap spacer in container for better size control
Wrapped the transparent spacer rectangle in a container.NewMax and explicitly called Resize to ensure the 10px height is respected by the VBox layout.
This commit is contained in:
parent
55ddbc9b5d
commit
993333dbea
8
main.go
8
main.go
|
|
@ -8750,9 +8750,11 @@ func buildConvertView(state *appState, src *videoSource) fyne.CanvasObject {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Stack video and metadata with 10px spacing between them
|
// Stack video and metadata with 10px spacing between them
|
||||||
// Create a 10px spacer
|
// Create a 10px spacer using a container with fixed size
|
||||||
spacer := canvas.NewRectangle(color.Transparent)
|
spacerRect := canvas.NewRectangle(color.Transparent)
|
||||||
spacer.SetMinSize(fyne.NewSize(1, 10))
|
spacerRect.SetMinSize(fyne.NewSize(1, 10))
|
||||||
|
spacer := container.NewMax(spacerRect)
|
||||||
|
spacer.Resize(fyne.NewSize(1, 10))
|
||||||
|
|
||||||
leftColumn := container.NewVBox(videoPanel, spacer, metaPanel)
|
leftColumn := container.NewVBox(videoPanel, spacer, metaPanel)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user