Closed (fixed)
Project:
Openlayers
Version:
6.x-1.x-dev
Component:
OpenLayers API
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
15 Oct 2009 at 09:49 UTC
Updated:
16 May 2024 at 00:50 UTC
Jump to comment: Most recent
Comments
Comment #1
tmcw commentedI'd recommend filing a ticket on the queue for the OpenLayers javascript library or asking this on the IRC channel there - this is a problem with the javascript, not the module.
I'm not sure what your intent is, but if it is to remove overflow-auto from the surrounding element, your best bet to do that is with the theme layer and aggressive CSS - use Firebug to find the surrounding elements and I think that the popup element is div.olPopupContent
Comment #2
Anonymous (not verified) commentedcrschmidt from #OpenLayers on IRC helped point me in the right direction. I removed the surrounding 'clear-block' div and changed the clearing span to a div, and it works - no scrollbar!
Marking as fixed for the benefit of anyone with similar problems that comes across this...
Comment #4
nocean commentedNot to dig up an old thread, but I stumbled upon this when looking for a solution to the same problem and BWPanda's description, while leading me down the right path, wasn't comprehensive enough to get me all the way there by itself.
So, if anyone else runs into this problem -- under your floated elements place a clear:both div, and then wrap the whole thing in another superfluous container div. What I think is happening, is that the JS is calculating the popup's height based on the parent div's height -- this just makes sure it calculates correctly.
An Example:
Hope that helps, and thanks BWPanda.
DBD