changed #preferredExtent - use explicitExtent instvar
authorStefan Vogel <sv@exept.de>
Sun, 26 Oct 2008 21:10:23 +0100
changeset 3571 15340c832dd7
parent 3570 a8243f6c0b1f
child 3572 5d45b98c9c38
changed #preferredExtent - use explicitExtent instvar
TextBox.st
--- a/TextBox.st	Sun Oct 26 21:09:46 2008 +0100
+++ b/TextBox.st	Sun Oct 26 21:10:23 2008 +0100
@@ -186,6 +186,12 @@
 
     |wWanted hWanted wPanel|
 
+    "/ If I have an explicit preferredExtent..
+    explicitExtent notNil ifTrue:[
+        ^ explicitExtent
+    ].
+
+    "/ If I have a cached preferredExtent value..
     preferredExtent notNil ifTrue:[
         ^ preferredExtent
     ].
@@ -210,5 +216,5 @@
 !TextBox class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg2/TextBox.st,v 1.19 2008-05-30 12:24:36 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg2/TextBox.st,v 1.20 2008-10-26 20:10:23 stefan Exp $'
 ! !