redox-os / orbtk

The Rust UI-Toolkit.
MIT License
3.77k stars 190 forks source link

Thumb position doesn't change when slider is resized #468

Closed trickypr closed 2 years ago

trickypr commented 2 years ago

Describe the bug If a Slider is resized, for example, by resizing the window, the thumb doesn't update to take this into account

To Reproduce Steps to reproduce the behavior:

  1. Clone the reproduction repository
  2. Build and run the program in release mode
  3. Resize the window
  4. Observe the slider not moving

Expected behavior When the slider resizes, the thumb should move so it remains in the correct ratio. I would assume that this would be achieved by running adjust_thumb_x after each resize.

Screenshots Thumb resize error

Desktop (please complete the following information):