[LON-CAPA-cvs] cvs: loncom /interface lonmenu.pm

albertel lon-capa-cvs-allow@mail.lon-capa.org
Tue, 17 Jul 2007 18:31:39 -0000


albertel		Tue Jul 17 14:31:39 2007 EDT

  Modified files:              
    /loncom/interface	lonmenu.pm 
  Log:
  - BUG#5323, resize code isn't really needed nowadays, more likely to annoy people then help people out (and windows can have the same problems (vitual desktops spanning multiple screens)  that got it banned from unix before)
  
  
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.221 loncom/interface/lonmenu.pm:1.222
--- loncom/interface/lonmenu.pm:1.221	Sun Jul 15 23:19:10 2007
+++ loncom/interface/lonmenu.pm	Tue Jul 17 14:31:37 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines to control the menu
 #
-# $Id: lonmenu.pm,v 1.221 2007/07/16 03:19:10 albertel Exp $
+# $Id: lonmenu.pm,v 1.222 2007/07/17 18:31:37 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -807,15 +807,16 @@
 	return '<script type="text/javascript">self.name="loncapaclient";</script>';
     }
     my $menuname='LCmenu'.$Apache::lonnet::perlvar{'lonHostID'};
-    unless (shift eq 'unix') {
+    
+#    unless (shift eq 'unix') {
 # resizing does not work on linux because of virtual desktop sizes
-       $returnval.=(<<ENDRESIZE);
-if (window.screen) {
-    self.resizeTo(screen.availWidth-215,screen.availHeight-55);
-    self.moveTo(190,15);
-}
-ENDRESIZE
-    }
+#       $returnval.=(<<ENDRESIZE);
+#if (window.screen) {
+#    self.resizeTo(screen.availWidth-215,screen.availHeight-55);
+#    self.moveTo(190,15);
+#}
+#ENDRESIZE
+#    }
     $returnval.=(<<ENDOPEN);
 window.status='Opening LON-CAPA Remote Control';
 var menu=window.open("/res/adm/pages/menu.html","$menuname",