[OpenLayers-Users] Pop-up auto size problem

Xavier Mamano (jorix) xavier.mamano at gmail.com
Sun Mar 17 02:54:01 PDT 2013


typo:
 * the window should be higher ...
must be
 * the popup should be higher ...


Xavier Mamano (jorix) wrote
> Hi Albrecht,
> 
> I have looked at the function `function AddMarker()` from "osm-plugin.js"
> 
> Uses a popup class with `... "panMapIfOutOfView": false, "keepInMap":
> true, ...` (is a cocktail that I do not like)
> 
> So when Toronto is in the middle of the map div: 
>  * the window should be higher than the middle of the height of map div
> (minus a margin), 
>  * the map can not move ["panMapIfOutOfView"=false], 
>  * and the popup should be all within the map ["keepInMap"=true],
>  * so the text of the list popup is cut. 
> 
> You really want: "panMapIfOutOfView"=false and "keepInMap"=true?
> 
> 
> And is set `feature.data.overflow = "hidden";` 
> 
> Try to remove the line `feature.data.overflow = "hidden";`, 
> in principle scrollbars should be displayed only if necessary, as in this
> case.
> 
> Regards,
> 
> Xavier





--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Pop-up-auto-size-problem-tp5040499p5040925.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list