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

ui.range have display wrong min value #4138

Open
USAmy opened this issue Dec 23, 2024 · 3 comments
Open

ui.range have display wrong min value #4138

USAmy opened this issue Dec 23, 2024 · 3 comments
Labels
question Further information is requested

Comments

@USAmy
Copy link

USAmy commented Dec 23, 2024

Description

I have two ui.range object, but when set up the min value, I found that the if I use the value less than -5, the GUI will display a wrong value like the screenshot. Can any body help me about this?
below is code here.

R2_R3_slider = ui.range(min=-20, max=120, step=1, value={'min': 20, 'max': 50}).props('label-always')
R4_slider =ui.range(min=-5, max=120, step=1, value={'min': 20, 'max': 50}).props('label-always')
image
@frankvp11
Copy link
Contributor

I'm sorry but when I test your example, I do not get the behaviour you are describing.
Would you mind testing it again (with only that code) and double checking your nicegui version.

@USAmy
Copy link
Author

USAmy commented Dec 24, 2024

I have tested only this code, still wrong value displayed:

from nicegui import ui, app
R2_R3_slider = ui.range(min=-20, max=120, step=1, value={'min': 20, 'max': 50}).props('label-always')
R4_slider =ui.range(min=-5, max=120, step=1, value={'min': 20, 'max': 50}).props('label-always')
ui.run(port=9999)

here is screenshot:
image

software version here:

  1. python 3.8.0
  2. ubuntu 18.04.6 LTS
  3. nicegui 2.9.0

@rodja
Copy link
Member

rodja commented Dec 28, 2024

Strange. I also was not able to reproduce this behaviour @USAmy. Do you need to do something else to break it? I just started up the application and values where right. When I move the slider, the minimum is correctly set to -20.

Your screenshot suggests you have some more code than what you showed. The labels are not fully visible when I start it:

Screenshot 2024-12-28 at 04 48 36

@falkoschindler falkoschindler added the question Further information is requested label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants