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
I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
This issue only relates to a single bug. I will open new issues for any other problems.
Describe the bug
When using the new widget.ImageSegment functionality, I can't seem to be able to define the alignment for it or control its position. When I resize the window text seems to align fine as per my code example, but image stays on the same position.
How to reproduce
check description, code examples and screenshot
Screenshots
Example code
package main
import (
fyne "fyne.io/fyne/v2""fyne.io/fyne/v2/app""fyne.io/fyne/v2/widget"
)
varcurrentmfolderstringfuncmain() {
myApp:=app.New()
myWindow:=myApp.NewWindow("Test Dialog")
richhead:=widget.NewRichTextFromMarkdown(`![Go2TV](go2tv-icon-small.png)Cast your media files to UPnP/DLNA Media Renderers and Smart TVs---`)
fori:=rangerichhead.Segments {
ifseg, ok:=richhead.Segments[i].(*widget.TextSegment); ok {
seg.Style.Alignment=fyne.TextAlignCenter
}
}
myWindow.SetContent(richhead)
myWindow.ShowAndRun()
}
Fyne version
v2.3.0
Go compiler version
1.19.4
Operating system
Linux
Operating system version
Ubuntu 18.04
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Checklist
Describe the bug
When using the new widget.ImageSegment functionality, I can't seem to be able to define the alignment for it or control its position. When I resize the window text seems to align fine as per my code example, but image stays on the same position.
How to reproduce
check description, code examples and screenshot
Screenshots
Example code
Fyne version
v2.3.0
Go compiler version
1.19.4
Operating system
Linux
Operating system version
Ubuntu 18.04
Additional Information
No response
The text was updated successfully, but these errors were encountered: