Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slider drag handle is clipped off at minimum size #2966

Closed
Jacalz opened this issue May 7, 2022 · 5 comments
Closed

Slider drag handle is clipped off at minimum size #2966

Jacalz opened this issue May 7, 2022 · 5 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@Jacalz
Copy link
Member

Jacalz commented May 7, 2022

Describe the bug:

Something is strange with the MinSize of the slider widget and I don't quite know why. It results in part of the drag handle being cut of at the sides. I can't replicate this on all my screens. It is the most apparent on my 15" laptop screen.

To Reproduce:

Steps to reproduce the behaviour:

  1. Run the example code below.
  2. Look in the top left corner.

Screenshots:

image

Example code:

package main

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

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

	w.SetContent(container.NewVBox(
		widget.NewSlider(0, 5),
	))

	w.ShowAndRun()
}

Device (please complete the following information):

  • OS: Fedora Linux
  • Version: 35 with the Linux Kernel 5.17.5
  • Go version: 1.16.15
  • Fyne version: v2.1.4 and develop
@Jacalz Jacalz added the bug Something isn't working label May 7, 2022
@andydotxyz andydotxyz added the good first issue Good for newcomers label Jun 27, 2022
@andydotxyz
Copy link
Member

From that app screenshot it looks like the whole widget is offset from where it should be drawn - which may be the cause of this glitch

@andydotxyz andydotxyz added this to the Fixes (v2.2.x) milestone Jun 27, 2022
@itsjustdel
Copy link
Contributor

itsjustdel commented Aug 16, 2022

Trying to replicate this I saw some different issues, perhaps it is linked:

If I run the app with any resolution and scaling at 100% I see a shortened bar
image

As soon as I resize the window, it fixes itself, even just adding 1 pixel to the height. (Moving the slider does not resize the bar)
image

When using any value over 100% scaling I do not see any issues

I have been unable to replicate the side of the ball being cropped

Windows 10 Go 1.18.1 Fyne v2.1.4

@itsjustdel
Copy link
Contributor

@Jacalz Does the cropping disappear if you resize the window?

@Jacalz
Copy link
Member Author

Jacalz commented Aug 26, 2022

Sorry for the late reply @itsjustdel. No, it seems to be consistently clipped off for me. See attached screen recording.
Screencast from 26-08-22 12:59:04.webm
.

@Jacalz
Copy link
Member Author

Jacalz commented Aug 27, 2022

This looks to have been fixed with the new theme changes. I will close it but potentially reopen if the issue occurs again.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants