Replace references to Diplay with "Screen current" - where appropriate
authorStefan Vogel <sv@exept.de>
Thu, 16 Jan 2014 15:32:56 +0100
changeset 6205 bed45895688a
parent 6204 56abbbb55591
child 6206 2b6f900478cc
Replace references to Diplay with "Screen current" - where appropriate
PopUpView.st
--- a/PopUpView.st	Thu Jan 16 15:32:54 2014 +0100
+++ b/PopUpView.st	Thu Jan 16 15:32:56 2014 +0100
@@ -60,10 +60,10 @@
      The value returned here is usually ignored, and
      the value from preferredExtent taken instead."
 
-    |screen|
+    |display|
 
-    screen := Screen current.
-    ^ (screen width // 3) @ (screen height // 3)
+    display := Screen current.
+    ^ (display monitorBoundsAt:display pointerPosition) extent // 3.
 
     "Modified: 5.7.1996 / 13:55:08 / cg"
 !
@@ -446,10 +446,10 @@
 !PopUpView class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview/PopUpView.st,v 1.60 2013-06-25 23:04:06 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/PopUpView.st,v 1.61 2014-01-16 14:32:56 stefan Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libview/PopUpView.st,v 1.60 2013-06-25 23:04:06 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/PopUpView.st,v 1.61 2014-01-16 14:32:56 stefan Exp $'
 ! !