[OpenLayers-Users] IE7 popup problem with 2.8 rc2

Christopher Schmidt crschmidt at metacarta.com
Fri May 8 07:44:00 EDT 2009


On Fri, May 08, 2009 at 11:29:43AM +0200, Frank Broniewski wrote:
> Hi list,
> 
> I recently tested my maps with the new OL 2.8 rc2 version in order to make the 
> multiple selectcontrol work. I use framed popups in my maps to display the 
> data. However I noticed in IE7 that the popup size is not adapted to the 
> content size, however it is when using OL 2.7.
> System is Win Xp64, 32bit Browser version.
> 
> I tried to find the css differences, but there aren't any apparent changes 
> that might cause this behavior, well at least I couldn't find any. If 
> necessary I can provide a test example.

Please do, as minimal as possible.

The only change that seems relevant is
http://trac.openlayers.org/changeset/8906, and I can't imagine hwy that
would be an issue. However, I don't have IE handy to test atm, and I
want to fix any and all regressions in another RC. 

> So I am just reporting this issue. Maybe someone else more skilled in JS and 
> CSS is able to find out what's going on.
> 
> I create my popups as following:
> 
> var content = '<div style="width:350;height:250;overflow:auto;"> <h4>' + 
> feature.attributes.name+'</h4> <p class="popupcode">' + 
> feature.attributes.description + '</p> </div>';
> 
> popup = new OpenLayers.Popup.FramedCloud("ptInfoPopup",
>     feature.geometry.getBounds().getCenterLonLat(),
>     null,
>     content,
>     null, true, function (evt) {
>         selectControl.unselect(selectedFeature);
>     });
> popup.minSize = new OpenLayers.Size(100,150);
> popup.maxSize = new OpenLayers.Size(400,300);
> -- 
> Frank Broniewski
> 
> Metrico s.àr.l. ( http://www.metrico.lu )
> 36, rue des Romains 
> L-5433 Niederdonven 
> Luxembourg
> 
> Fon: +352 26 74 94 28 
> Fax: +352 26 74 94 99
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users

-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list