Skip to content

Commit f8bdf23

Browse files
committed
RF: set labelHeight to match tick height by default
1 parent 0f80386 commit f8bdf23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

psychopy/visual/slider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def __init__(self,
163163
self.tickLines = []
164164
self.tickLocs = None
165165
self.labelLocs = None
166-
self.labelHeight = labelHeight
166+
self.labelHeight = labelHeight or min(self._size)
167167
self._lineAspectRatio = 0.01
168168
self._updateMarkerPos = True
169169
self._dragging = False

0 commit comments

Comments
 (0)