[fusion-trac] #253: Maptip opened URL does not obey sWinFeatures

Fusion trac_fusion at osgeo.org
Mon May 4 12:57:53 EDT 2009


#253: Maptip opened URL does not obey sWinFeatures
------------------------+---------------------------------------------------
   Reporter:  amorsell  |       Owner:  madair
       Type:  defect    |      Status:  new   
   Priority:  P2        |   Milestone:  2.0   
  Component:  Widgets   |     Version:  1.1.1 
   Severity:  Major     |    Keywords:        
External_id:            |       State:  New   
    Browser:  All       |          Os:  All   
------------------------+---------------------------------------------------
 While trying to fix the default behavior of the maptip URL opened window
 not having scrollbars, I discovered that the openLink function does not
 obey the sWinFeatures.

 Try editing the sWinFeatures on or around line 59 to something like:
 {{{
 sWinFeatures :
 'menubar=no,location=no,resizable=yes,status=no,scrollbars=yes,width=1024,height=800',
 }}}
 But, the opened window will not reflect those overrides.  The only way to
 override the opened window behavior is through something like:

 {{{
 openLink : function(evt, url) {
         //below line added since window.open did not seem to obey changes
 in sWinFeatures
         var myWinFeatures =
 'menubar=no,location=no,resizable=no,status=no,width=1024,height=800,scrollbars=yes';
                 var taskPaneTarget = Fusion.getWidgetById(this.sTarget);
                 if ( taskPaneTarget ) {
                 taskPaneTarget.setContent(url);
                 } else {
                 var pageElement = $(this.sTarget);
                 if ( pageElement ) {
                         pageElement.src = url;
                 } else {
                                 window.open(url, this.sTarget,
 myWinFeatures);
                 }
         }
         OpenLayers.Event.stop(evt, true);
         return false;
     }
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/fusion/ticket/253>
Fusion <http://trac.osgeo.org/fusion>
Fusion is a web-mapping application development framework for MapServer and MapGuide OS.


More information about the fusion-trac mailing list