changed #preferredExtent - use explicitExtent instvar
authorStefan Vogel <sv@exept.de>
Sun, 26 Oct 2008 21:14:50 +0100
changeset 3579 f28e1643b8d1
parent 3578 c26dbbad64f6
child 3580 e9fe446dc779
changed #preferredExtent - use explicitExtent instvar
HorizontalSlider.st
--- a/HorizontalSlider.st	Sun Oct 26 21:13:52 2008 +0100
+++ b/HorizontalSlider.st	Sun Oct 26 21:14:50 2008 +0100
@@ -9,7 +9,6 @@
  other person.  No title to or ownership of the software is
  hereby transferred.
 "
-
 "{ Package: 'stx:libwidg2' }"
 
 Slider subclass:#HorizontalSlider
@@ -61,8 +60,12 @@
 
     |w h|
 
-    "/ If I have an explicit preferredExtent ..
+    "/ If I have an explicit preferredExtent..
+    explicitExtent notNil ifTrue:[
+        ^ explicitExtent
+    ].
 
+    "/ If I have a cached preferredExtent value..
     preferredExtent notNil ifTrue:[
         ^ preferredExtent
     ].
@@ -79,5 +82,5 @@
 !HorizontalSlider class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg2/HorizontalSlider.st,v 1.16 2005-05-11 16:36:22 stefan Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg2/HorizontalSlider.st,v 1.17 2008-10-26 20:14:50 stefan Exp $'
 ! !