honor forceModalToCenter
authorClaus Gittinger <cg@exept.de>
Thu, 11 Oct 2001 18:32:49 +0200
changeset 1520 6ee198fcb0e0
parent 1519 bc832a0d71ed
child 1521 3c54279a418c
honor forceModalToCenter
WindowBuilder.st
--- a/WindowBuilder.st	Thu Oct 11 18:29:52 2001 +0200
+++ b/WindowBuilder.st	Thu Oct 11 18:32:49 2001 +0200
@@ -1224,7 +1224,8 @@
     ].
 
     type == #dialog ifTrue:[
-        origin == #center ifTrue:[
+        ((origin isNil and:[window class forceModalBoxesToOpenAtCenter])
+        or:[origin == #center]) ifTrue:[
             window origin:(window device center - (window extent // 2))
         ] ifFalse:[
             window fixPosition:(window device pointerPosition - window positionOffset).
@@ -1266,5 +1267,5 @@
 !WindowBuilder class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview2/WindowBuilder.st,v 1.93 2001-09-12 15:33:16 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview2/WindowBuilder.st,v 1.94 2001-10-11 16:32:49 cg Exp $'
 ! !