[OpenLayers-Users] Scrollbars in popup
Christopher Schmidt
crschmidt at metacarta.com
Tue Jul 17 10:22:44 EDT 2007
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.
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list