<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello Maren,<br>
<br>
For your first question try this:<br>
<br>
...<br>
feature.popup = popup;<br>
<b>popup.keepInMap = true;<br>
</b>map.addPopup(popup);<br>
<br>
Regards,<br>
Adrian<br>
<br>
Maren Kiehl wrote:
<blockquote cite="mid:4A8D5A94.1020604@gmx.de" type="cite">
  <pre wrap="">Hi everyone,

I have a problem with the popup in my map: When I click a point a popup 
with some informations is shown. The problem is that it isn't in the 
current map size so I have to pan to the right position to be able to 
read it.
In the documentation I found a property named "keepInMap {boolean}" but 
I don't know how to use it. This is my popup-constructor:

 popup = new OpenLayers.Popup("info",
                                     
feature.geometry.getBounds().getCenterLonLat(),
                                     new OpenLayers.Size(350,200),
                                     "test test test test",
                                     false, onPopupClose);
           
            feature.popup = popup;
            map.addPopup(popup);

Could anybody help me with using this property?
And another question: Which value do I have to use in the constructor 
for showing the popup at the right border of the map? At the moment the 
upper left corner of the popup is located in the center of the point 
which was clicked.

Thanks for helping me.
Bye, Maren

-------------------
Maren Kiehl
mail: <a class="moz-txt-link-abbreviated" href="mailto:maren.kiehl@gmx.de">maren.kiehl@gmx.de</a>
(student bachelor of science geoinformatics)

_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@openlayers.org">Users@openlayers.org</a>
<a class="moz-txt-link-freetext" href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a>

  </pre>
</blockquote>
<br>
</body>
</html>