<br><br>On Sunday, May 20, 2012, Matthias Meißer wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
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.<br>
<br>
With the following code, I get an XXL Popup that is as wide as my screen:<br>
<style>.pop_heading{font-<u></u>family: Arial, Helvetica, sans-serif; font-weight: bold;font-size:16px}</style><br>
<style>.pop_text{font-family: Arial, Helvetica, sans-serif;<br>
font-size: 12px;<br>
text-decoration: none;<br>
padding-right:5px;<br>
padding-top:5px;} <br>
</style><br>
...<br>
<br>
function nodeSelect(feature) {<br>
content=getNodePopupContent(<u></u>feature.data);<br>
feature.popup = new OpenLayers.Popup.FramedCloud(<u></u>null,<br>
feature.geometry.getBounds().<u></u>getCenterLonLat(),<br>
null,<br>
'<div>'+content+"</div>",<br>
feature.marker,<br>
true);<br>
feature.popup.minSize=new OpenLayers.Size(250,400);<br>
feature.popup.autoSize=true; <br>
map.addPopup(feature.popup);<br>
}<br>
<br>
Can anybody confirm this behaviour? on 2.12-rc4? As far as I analysed, my design seems to be ok :/</blockquote><div><br></div><div><br></div><div>Could you please create a complete example that works as expected with 2.11 and not with 2.12? An HTML file that we can just drop in OpenLayers' “examples” dir would be ideal. Thanks.<span></span></div>
<br><br>-- <br>Eric Lemoine<br><br>Camptocamp France SAS<br>Savoie Technolac, BP 352<br>73377 Le Bourget du Lac, Cedex<br><br>Tel : 00 33 4 79 44 44 96<br>Mail : <a href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a><br>
<a href="http://www.camptocamp.com">http://www.camptocamp.com</a><br><br>