#6519·fyne

Selection in Label with trailing alignement is not drawn correctly

Author: matwachichCreated Sep 5, 2026Updated Sep 7, 2026
Labelsbug

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

No better description than the screenshot

How to reproduce

.

Screenshots

Image

Example code

go
package main

import (
	"fyne.io/fyne/v2"
	"fyne.io/fyne/v2/app"
	"fyne.io/fyne/v2/widget"
)

func main() {
	a := app.New()
	w := a.NewWindow("Test")

	l := &widget.Label{
		Text: "Testing Label",
		Alignment: fyne.TextAlignTrailing,
		Selectable: true,
	}

	w.SetContent(l)
	w.ShowAndRun()
}

Fyne version

2.8.0

Go compiler version

1.26

Operating system and version

Windows 11

Additional Information

No response