ColorMenu.st
changeset 4003 ed34e80d3840
parent 3998 b0ef8a3d446c
child 4024 86fe84612950
--- a/ColorMenu.st	Fri Feb 04 17:24:04 2011 +0100
+++ b/ColorMenu.st	Fri Feb 04 17:24:31 2011 +0100
@@ -587,6 +587,23 @@
     ]
 ! !
 
+!ColorMenu methodsFor:'accessing-dimensions'!
+
+preferredExtent
+    "workaround: will change the preferredExtent !!!!
+        same in FontMenu"
+
+    |extent|
+
+    preferredExtent notNil ifTrue:[
+        ^ super preferredExtent.
+    ].
+    extent := super preferredExtent.
+    preferredExtent := nil.
+
+    ^ extent
+! !
+
 !ColorMenu methodsFor:'change & update'!
 
 hasNilColorHolderChanged
@@ -797,9 +814,9 @@
 !ColorMenu class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg2/ColorMenu.st,v 1.69 2011-01-24 19:35:06 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg2/ColorMenu.st,v 1.70 2011-02-04 16:24:31 ca Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libwidg2/ColorMenu.st,v 1.69 2011-01-24 19:35:06 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg2/ColorMenu.st,v 1.70 2011-02-04 16:24:31 ca Exp $'
 ! !