[OpenLayers-Users] Scrollbars within popup? (overflow:auto)
Nick Whitelegg
nick at hogweed.org
Tue Feb 13 17:14:59 EST 2007
I'm trying to create a <div> within a popup (associated with a feature) and
set its style to overflow:auto so that it will scroll if the text within the
popup overflows the div. However it does not appear to work - no scrollbars
are created. Sample code:
data.popupSize = new OpenLayers.Size(320, 200);
contentHTML = "<div style='overflow:auto'>";
if (description != null) {
contentHTML += description;
}
contentHTML += "</div>";
data['popupContentHTML'] = contentHTML;
Is there any way of doing this? Alternatively is there a way of saying that
the popup will be "as big as it needs to be"?
Thanks,
Nick
More information about the Users
mailing list