[OpenLayers-Trac] Re: [OpenLayers] #2870: Popup.Anchored: Bad
positioning using anchor
OpenLayers
trac-20090302 at openlayers.org
Fri Oct 15 02:03:11 EDT 2010
#2870: Popup.Anchored: Bad positioning using anchor
----------------------------+-----------------------------------------------
Reporter: jorix | Owner:
Type: bug | Status: new
Priority: minor | Milestone: 2.11 Release
Component: Popup.Anchored | Version: 2.10
Keywords: | State: Review
----------------------------+-----------------------------------------------
Comment(by rdewit):
See discussion [http://osgeo-org.1803224.n2.nabble.com/Problem-in-the-
positioning-of-popups-Anchored-Framed-and-FramedCloud-using-argument-
anchor-tp5621326p5637762.html here].
Thinking about it a bit more, I think I did do something wrong. Would it
make sense to change
{{{
newPx.x += (left) ? -(size.w + this.anchor.size.w) :
this.anchor.size.w;
newPx.y += (top) ? -(size.h + this.anchor.size.h) :
this.anchor.size.h;
}}}
in
{{{
newPx.x += (left) ? -this.anchor.size.w : this.anchor.size.w;
newPx.y += (top) ? -this.anchor.size.h : this.anchor.size.h;
}}}
?
I have not tested this, but that might be the solution. If so, let me know
and I'll create a new patch with tests to solve this for once and for all.
--
Ticket URL: <http://trac.openlayers.org/ticket/2870#comment:1>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list