[OpenLayers-Trac] [OpenLayers] #3042: Setting contentDisplayClass on a FramedCloud popup has no effect

OpenLayers trac-20090302 at openlayers.org
Fri Feb 4 11:06:40 EST 2011


#3042: Setting contentDisplayClass on a FramedCloud popup has no effect
-------------------------------+--------------------------------------------
 Reporter:  slinkp             |       Owner:              
     Type:  bug                |      Status:  new         
 Priority:  minor              |   Milestone:  2.10 Release
Component:  Popup.FramedCloud  |     Version:  SVN         
 Keywords:                     |       State:              
-------------------------------+--------------------------------------------
 I'm using SVN r10972 .

 Test case (assuming you already have a map and a feature):

 {{{
         var map = ...;
         var feature = ...;
         var popup = new OpenLayers.Popup.FramedCloud(
             null, feature.geometry.getBounds().getCenterLonLat(), null,
 'test content',
             {size: new OpenLayers.Size(1, 1), offset: new
 OpenLayers.Pixel(0, 0)},
             false, // closeBox.
             null
          );
         popup.contentDisplayClass = 'overridePopupContent'; // has no
 effect!
         feature.popup = popup;
         map.addPopup(popup);
 }}}

 The rendered popup still has a div with class="olFramedCloudPopupContent"
 instead of "overridePopupContent".

 Have not tested whether this affects other Popup classes.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3042>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list