Closed
Description
Checklist
- 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"
)
var currentmfolder string
func main() {
myApp := app.New()
myWindow := myApp.NewWindow("Test Dialog")
richhead := widget.NewRichTextFromMarkdown(`

Cast your media files to UPnP/DLNA Media Renderers and Smart TVs
---
`)
for i := range richhead.Segments {
if seg, 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
Activity