dgui: Fix DirectSlider unit test failure

This commit is contained in:
rdb 2021-04-08 12:27:46 +02:00
parent bb6a66a582
commit 5be46c4124

View File

@ -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: