Hi,

to get tooltip support I updated my 2.11 to a fresh one from GIT. Unfortunatly, there seems to be now a problem with popup size.

With the following code, I get an XXL Popup that is as wide as my screen:
<style>.pop_heading{font-family: Arial, Helvetica, sans-serif; font-weight: bold;font-size:16px}</style>
<style>.pop_text{font-family: Arial, Helvetica, sans-serif;
        font-size: 12px;
        text-decoration: none;
        padding-right:5px;
        padding-top:5px;}       
</style>
...

function nodeSelect(feature) {
                content=getNodePopupContent(feature.data);
                feature.popup = new OpenLayers.Popup.FramedCloud(null,
feature.geometry.getBounds().getCenterLonLat(),
        null,
        '<div>'+content+"</div>",
        feature.marker,
        true);
feature.popup.minSize=new OpenLayers.Size(250,400);
feature.popup.autoSize=true;    
map.addPopup(feature.popup);
}

Can anybody confirm this behaviour? on 2.12-rc4? As far as I analysed, my design seems to be ok :/

thanks
Matthias
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to