Skip to content

Commit

Permalink
Use VBox layout for new containers
Browse files Browse the repository at this point in the history
  • Loading branch information
sdassow authored and andydotxyz committed Jan 30, 2025
1 parent 841d27b commit b42a036
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/guidefs/containers.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func initContainers() {
"*fyne.Container": {
Name: "Container",
Create: func() fyne.CanvasObject {
return container.NewStack()
return container.NewVBox()
},
Edit: func(obj fyne.CanvasObject, props map[string]string, refresh func([]*widget.FormItem)) []*widget.FormItem {
c := obj.(*fyne.Container)
Expand Down Expand Up @@ -45,7 +45,7 @@ func initContainers() {
c := obj.(*fyne.Container)
l := props[c]["layout"]
if l == "" {
l = "Stack"
l = "VBox"
}
lay := Layouts[l]
if lay.goText != nil {
Expand Down

0 comments on commit b42a036

Please sign in to comment.