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,
|
self.thumb = self.createcomponent("thumb", (), None,
|
||||||
DirectButton, (self,),
|
DirectButton, (self,),
|
||||||
borderWidth = self['borderWidth'])
|
borderWidth = self['borderWidth'])
|
||||||
if self.thumb['frameSize'] is None and \
|
if self.thumb['frameSize'] is None:
|
||||||
self.thumb.bounds == [0.0, 0.0, 0.0, 0.0]:
|
|
||||||
# Compute a default frameSize for the thumb.
|
# Compute a default frameSize for the thumb.
|
||||||
f = self['frameSize']
|
f = self['frameSize']
|
||||||
if self['orientation'] == DGG.HORIZONTAL:
|
if self['orientation'] == DGG.HORIZONTAL:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user