#REFACTORING by cg
authorClaus Gittinger <cg@exept.de>
Mon, 23 Jan 2017 01:31:54 +0100
changeset 6037 cd0dbf7aa43a
parent 6036 e3f885594b40
child 6038 be9d8485368e
#REFACTORING by cg class: DialogBox added: #forceResize
DialogBox.st
--- a/DialogBox.st	Sun Jan 22 20:29:11 2017 +0100
+++ b/DialogBox.st	Mon Jan 23 01:31:54 2017 +0100
@@ -10279,6 +10279,16 @@
     preferredExtent := nil.
 !
 
+forceResize
+    "force a recomputation of my size.
+     Cann this, when elements where added to a subcomponent, 
+     of which I cannot know. 
+     Eg. when someone gets the buttonPanel and adds an element to it"
+     
+    needResize := true.
+    self resize
+!
+
 hideAndEvaluate:aBlock
     "if I am modal, make myself invisible and evaluate aBlock.
      If nonModal, stay up, but also evaluate the block."