gaiaresources / ala-citizenscience

Automatically exported from code.google.com/p/ala-citizenscience
1 stars 4 forks source link

Advanced review map layers redraw incorrectly on chrome when maximised then minimised. #347

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open the map tab on the advanced review screen.
2. Maximise the map
3. Shrink the map.

What is the expected output? What do you see instead?
Expect the observations/sightings to be drawn in the correct place.
Instead they are shifted.
This doesn't happen in IE/Firefox/Safari, it just seems to affect Chrome.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by chris.go...@gmail.com on 27 Sep 2012 at 5:56

GoogleCodeExporter commented 9 years ago
This looks like it's a Chrome bug that may have a workaround in OpenLayers 2.12.
https://github.com/openlayers/openlayers/issues/392

Original comment by chris.go...@gmail.com on 27 Sep 2012 at 6:26

GoogleCodeExporter commented 9 years ago
Issue 215 has been merged into this issue.

Original comment by chris.go...@gmail.com on 27 Sep 2012 at 7:07

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Upgrading to open layers 2.12 introduces some problems when drawing polygons so 
I've opted for adding a workaround.  When the map is shrunk, I am setting 
display:block on the svg element, which is what OpenLayers 2.12 does.
Tested in IE8/Chrome/Firefox/Safari and works ok.

Patch attached.

Original comment by chris.go...@gmail.com on 28 Sep 2012 at 12:04

Attachments:

GoogleCodeExporter commented 9 years ago
Reviewed and accepted by a.low

Original comment by aaron.lo...@gmail.com on 28 Sep 2012 at 1:31