mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 07:48:37 -04:00
dgui: Fix DirectSlider unit test failure
This commit is contained in:
parent
bb6a66a582
commit
5be46c4124
@ -58,8 +58,7 @@ class DirectSlider(DirectFrame):
|
||||
self.thumb = self.createcomponent("thumb", (), None,
|
||||
DirectButton, (self,),
|
||||
borderWidth = self['borderWidth'])
|
||||
if self.thumb['frameSize'] is None and \
|
||||
self.thumb.bounds == [0.0, 0.0, 0.0, 0.0]:
|
||||
if self.thumb['frameSize'] is None:
|
||||
# Compute a default frameSize for the thumb.
|
||||
f = self['frameSize']
|
||||
if self['orientation'] == DGG.HORIZONTAL:
|
||||
|
Loading…
x
Reference in New Issue
Block a user