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