Skip to content

Commit

Permalink
add minimum support
Browse files Browse the repository at this point in the history
  • Loading branch information
alisterburt committed Jun 21, 2023
1 parent 16787db commit 8f83091
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/superqt/sliders/_labeled.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ def _setValue(self, value: float):
value = int(value)
if self._slider.maximum() < value:
self._slider.setMaximum(value)
elif self._slider.minimum() > value:
self._slider.setMinimum(value)
self._slider.setValue(int(value))

def _rename_signals(self):
Expand Down

0 comments on commit 8f83091

Please sign in to comment.