Skip to content

RagioGroup miscalulates label widths in horizontal mode #3386

Closed
@grkuntzmd

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 long labels are used in the RagioGroup in horizontal mode, they overlap.

How to reproduce

go run .

Screenshots

image

Example code

package main

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

func main() {
	a := app.New()
	w := a.NewWindow("Radio Group Bug")

	rg := widget.NewRadioGroup([]string{"Easy", "Medium", "Hard", "Expert"}, func(s string) {})
	rg.Horizontal = true

	w.SetContent(rg)
	w.ShowAndRun()
}

Fyne version

2.2.3

Go compiler version

1.19.3

Operating system

Windows

Operating system version

Windows 11 Pro Version 22H2

Additional Information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions