ProgressIndicator.st
changeset 3581 3a61a4e2a631
parent 3542 3e9b8a2186da
child 3626 b2087f53346e
--- a/ProgressIndicator.st	Sun Oct 26 21:15:36 2008 +0100
+++ b/ProgressIndicator.st	Sun Oct 26 21:16:10 2008 +0100
@@ -1030,8 +1030,14 @@
 preferredExtent
     "return my preferred extent"
 
+    "/ If I have an explicit preferredExtent..
+    explicitExtent notNil ifTrue:[
+        ^ explicitExtent
+    ].
+
+    "/ If I have a cached preferredExtent value..
     preferredExtent notNil ifTrue:[
-	^ preferredExtent
+        ^ preferredExtent
     ].
     ^ 100 @ (font height + font descent + ((margin + 1) * 2))
 
@@ -1204,5 +1210,5 @@
 !ProgressIndicator class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg2/ProgressIndicator.st,v 1.56 2008-10-04 10:28:34 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg2/ProgressIndicator.st,v 1.57 2008-10-26 20:16:10 stefan Exp $'
 ! !