On Thu, Jul 31, 2008 at 09:23:21AM -0400, Burgholzer,Robert wrote: > I have an ajax based application that edits the properties on objects, > and uses an openlayers window as a means to supply KML shapes for those > objects. Sometimes, when editing an object, due to property value > widths, the normal property editing div resizes when it loads data. > When this happens, the OL window is shifted over, and then drawing > registration is offset. That is, the lines appear offset from the mouse > pointer, making drawing quite challenging. > > Any ideas what might be happening here? (Using FF2)
I'm somewhat surprised that this is happening in OL2.6, but you didn't mention what version you're actually using... so I don't know what you're actually using. Any time your map size changes, call map.updateSize(). This should clear out the event caches, and make your mouse position/line drawing correct again. Reproducing a small example where it doesn't if it doesn't work would be good. Regards, -- Christopher Schmidt MetaCarta _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
