Chris, Thanks for the response. I am using OL 2.6. The issue occurs not when the map window is resized (it stays the same), but when it's location is moved over on the page to accept a larger block of text in an adjacent table cell.
I currently do not have the ability to demonstrate on an external server (some time tomorrow or later today I will get that going). Thanks for any insight, r.b. Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality [EMAIL PROTECTED] 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ -----Original Message----- From: Christopher Schmidt [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2008 9:37 AM To: Burgholzer,Robert Cc: [email protected] Subject: Re: [OpenLayers-Users] drawing shape gets offset when window expands 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
