[OpenLayers-Users] Scrollbars in popup

Eric Lemoine eric.c2c at gmail.com
Tue Jul 17 10:32:00 EDT 2007


On 7/17/07, Christopher Schmidt <crschmidt at metacarta.com> wrote:
> On Tue, Jul 17, 2007 at 04:02:04PM +0200, Eric Lemoine wrote:
> > On 7/12/07, Christopher Schmidt <crschmidt at metacarta.com> wrote:
> > (1) using popup.contentDiv.style.overflow='auto' works fine except
> > half of the scrollbar is hidden in my case (I use AnchoredBubble w/ a
> > close button). Do you know a way to avoid this?
>
> Ah, I didn't actually use this solution. I just make my content have a
> small scrollable div inside.
>
>         html += "<div style='overflow:auto; width:250px;
>         height:200px;'><b>"+attrs.title+"</b><br /><a
>         href='http://flickr.com/photos/"+attrs.owner+"/"+attrs.id+"/'><img
>         src='http://farm"+attrs.farm+".static.flickr.com/"+attrs.server+"/"+attrs.id+"_"+attrs.secret+"_m.jpg'
>         /></a></div>";
>
> 25px less wide than the popup.

I tried that and it worked ok. Thx a lot!

Any advice on the mousewheel thing? ;->

--
Eric



More information about the Users mailing list