usableExtent vs. width/height of a display
authorClaus Gittinger <cg@exept.de>
Fri, 11 Apr 2008 15:16:49 +0200
changeset 4936 9ac25d62f361
parent 4935 57354733f7d4
child 4937 1b0ebaed9336
usableExtent vs. width/height of a display (multiscreen configurations)
ModalBox.st
--- a/ModalBox.st	Fri Apr 11 15:13:57 2008 +0200
+++ b/ModalBox.st	Fri Apr 11 15:16:49 2008 +0200
@@ -854,8 +854,8 @@
          try to the right of the untouchable view
         "
         newX := (aView origin x + aView width).
-        newX + width > device width ifTrue:[
-            newX := device width - width
+        newX + width > device usableExtent x ifTrue:[
+            newX := device usableExtent x - width
         ].
         pos x:newX.
 
@@ -913,7 +913,7 @@
 !ModalBox class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview/ModalBox.st,v 1.94 2008-04-11 13:13:57 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/ModalBox.st,v 1.95 2008-04-11 13:16:49 cg Exp $'
 ! !
 
 ModalBox initialize!