You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The shadow of a Modal does not match up with it's size/contents when it contains a long label.
To Reproduce:
Full code attached.
Screenshots
Without Wrap
With Wrap
With Reload
( no change )
With Resize then Reload
( no change )
Putting modal.Show() Last
( no change )
Example code:
funcmain() {
fyneApp=app.New()
fyneApp.Settings().SetTheme(theme.DarkTheme())
mainWindow=fyneApp.NewWindow("Hello, Fyne!")
hello:=widget.NewLabel("Hello Fyne!")
mainWindow.SetContent(widget.NewVBox(
hello,
widget.NewButton("Hi!", func() {
hello.SetText("Welcome :)")
}),
))
mainWindow.Resize(fyne.NewSize(420, 360))
mainWindow.CenterOnScreen()
mainWindow.Show()
label:=widget.NewLabel("This is some really long text, and we know it will not fit on the screen, because this does not wrap by default.")
modal:=widget.NewModalPopUp(
widget.NewCard("Welcome!", "First-Time Setup",
widget.NewVBox(
label,
),
), mainWindow.Canvas())
// label.Wrapping = fyne.TextWrapWordmodal.Show()
// modal.Resize(fyne.NewSize(400, 340))// mainWindow.Canvas().Refresh(modal)// modal.Refresh()fyneApp.Run()
}
Device (please complete the following information):
OS: Fedora
Version: 33
Go version: 1.15.2 linux/amd64
Fyne version: 1.4.0
The text was updated successfully, but these errors were encountered:
I am pretty confident that this is because the label will resize to accomodate the wrap.
That makes this a duplicate of a ticket we hoped to resolve soon, #1370
Describe the bug:
The shadow of a Modal does not match up with it's size/contents when it contains a long label.
To Reproduce:
Full code attached.
Screenshots
Without Wrap
With Wrap
With Reload
( no change )
With Resize then Reload
( no change )
Putting
modal.Show()
Last( no change )
Example code:
Device (please complete the following information):
The text was updated successfully, but these errors were encountered: