Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content not filling Dialog #1360

Closed
stuartmscott opened this issue Oct 6, 2020 · 1 comment
Closed

Content not filling Dialog #1360

stuartmscott opened this issue Oct 6, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@stuartmscott
Copy link
Member

Describe the bug:

Content within a dialog is not expanded to fill the available space

Screenshots:

https://slack-files.com/T029RQSE6-F01CSCWNM4Y-8d46682e2c

Example code:

package main

import (
	"fmt"
	"fyne.io/fyne"
	"fyne.io/fyne/app"
	"fyne.io/fyne/dialog"
	"fyne.io/fyne/widget"
)

func main() {
	a := app.New()
	w := a.NewWindow("List Dialog")
	w.SetContent(widget.NewButton("Show List Dialog", func() {
		l := widget.NewList(
			func() int {
				return 10
			},
			func() fyne.CanvasObject {
				return widget.NewLabel("Template")
			},
			func(index int, item fyne.CanvasObject) {
				item.(*widget.Label).SetText(fmt.Sprintf("Item %d", index))
			})
		d := dialog.NewCustom("List Dialog", "OK", l, w)
		d.Show()
		d.Resize(fyne.NewSize(500, 500))
	}))
	w.Resize(fyne.NewSize(600, 600))
	w.ShowAndRun()
}
@okratitan
Copy link
Member

Resolved by #1367

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants