changed #preferredExtent - use explicitExtent instvar
authorStefan Vogel <sv@exept.de>
Sun, 26 Oct 2008 21:14:32 +0100
changeset 3768 d759c921cb45
parent 3767 30ede36bb2ee
child 3769 758f8b0b6cf2
changed #preferredExtent - use explicitExtent instvar
EditField.st
--- a/EditField.st	Sun Oct 26 21:14:18 2008 +0100
+++ b/EditField.st	Sun Oct 26 21:14:32 2008 +0100
@@ -2088,8 +2088,12 @@
 
     |string w h f|
 
-    "/ 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
     ].
@@ -2227,5 +2231,5 @@
 !EditField class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg/EditField.st,v 1.197 2008-09-18 10:10:55 stefan Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg/EditField.st,v 1.198 2008-10-26 20:14:32 stefan Exp $'
 ! !