changed #preferredExtent - use explicitExtent instvar
authorStefan Vogel <sv@exept.de>
Sun, 26 Oct 2008 21:08:14 +0100
changeset 3750 3d4912629acf
parent 3749 e48df33c3ec8
child 3751 8c607457ad94
changed #preferredExtent - use explicitExtent instvar
InfoBox.st
--- a/InfoBox.st	Fri Oct 24 16:24:08 2008 +0200
+++ b/InfoBox.st	Sun Oct 26 21:08:14 2008 +0100
@@ -385,8 +385,12 @@
 
     |w h mm|
 
-    "/ 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
     ].
@@ -417,5 +421,5 @@
 !InfoBox class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg/InfoBox.st,v 1.45 2008-05-30 12:25:15 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg/InfoBox.st,v 1.46 2008-10-26 20:08:14 stefan Exp $'
 ! !