[OpenLayers-Users] IE7 popup problem with 2.8 rc2

Frank Broniewski brfr at metrico.lu
Fri May 8 05:29:43 EDT 2009


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.
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



More information about the Users mailing list