openlayers/openlayers — Issue #131: Framed Cloud offsets are a bit of a jumble
Author: gravitystorm
Created: 2012-01-04 18:51:25+00:00
State: open

I found this when I replaced cloud-popup-relative.png with a translucent version.

The "stem" of the popup (`div id="foo_FrameDecorationDiv_4"`) is variously 33px, 33px, 35px, 35px in height (when in the top left, tr, bl, br respectively) but the rest of the popup is always positioned a vertical 32px away from the relevant edge of the `foo_GroupDiv` . These 1 and 3 pixel overlaps between the stem and the rest of the popup make no difference on a solid fill cloud-popup-relative.png as shipped with openlayers, but give artefacts on translucent ones.

https://github.com/openlayers/openlayers/blob/master/lib/OpenLayers/Popup/FramedCloud.js has the sizes and offsets. It's pretty clear that the stem sizes are inconsistent, but so are many of the other number (e.g. vertical offsets for the bottom of the main cloud of -631, -632, -629 all appear. I haven't made any effort (yet) to untangle them all.

I suspect the inconsistency are somewhat cancelling each other out on the default image, unless there is some subtlety that I'm missing?