changed: #basicAddComponent:
authorClaus Gittinger <cg@exept.de>
Tue, 22 Sep 2009 19:03:17 +0200
changeset 3932 fa0f5fcfc64b
parent 3931 cdc9592de08d
child 3933 0e24fbf0f5fa
changed: #basicAddComponent: must flush any cached preferredExtent, when a component is added
DialogBox.st
--- a/DialogBox.st	Mon Sep 21 23:07:48 2009 +0200
+++ b/DialogBox.st	Tue Sep 22 19:03:17 2009 +0200
@@ -8543,6 +8543,10 @@
     ].
     addedComponents add:aComponent.
     self addSubView:aComponent.
+
+    "/ must flush any cached preferredExtent, when a component is added (for example, in an aboutToOpen callBack)
+    needResize := true.
+    preferredExtent := nil.
 !
 
 hideAndEvaluate:aBlock
@@ -8861,7 +8865,7 @@
 !DialogBox class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg/DialogBox.st,v 1.286 2009-09-07 09:34:45 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg/DialogBox.st,v 1.287 2009-09-22 17:03:17 cg Exp $'
 ! !
 
 DialogBox initialize!