CloudMade/Leaflet — pull request #453 by mortenbekditlevsen (2012-02-01 08:51:09+00:00)
Title: Map.invalidateSize() could cause an antialiasing artifact on WebKit

Map.invalidateSize() could cause an antialiasing artifact on WebKit when the map has an odd width and/or height. Rounding the pan offset fixes the issue for me.

To reproduce, set the width of the map to 100% in debug/map/map.html
Then resize the browser window (with a browser using WebKit - I am running Chrome 17.0.963.46 on OSX)
Half of the refreshes will produce blurred (antialiased) versions of the map.

PS: Leaflet is my first github fork - and this is my first pull request, so please bear with me if I am not following the correct procedure.

PPS: Leaflet is _SO_ awesome!