Skip to content
This repository has been archived by the owner on Jul 5, 2018. It is now read-only.

Slightly hacky fix for bug 38933 - pass through to Leaflet's _onResize()... #98

Merged
merged 2 commits into from Aug 6, 2012

Conversation

bvibber
Copy link
Contributor

@bvibber bvibber commented Aug 2, 2012

... handler

  • call map._onResize() which wraps an invalidateSize() in a requestAnimationFrame call, which is faster and less crude than a setTimeout
  • manually call the _onResize handler during resize so we can avoid it when the map page is hidden -- that just breaks!
  • abstract things a bit

…e() handler

* call map._onResize() which wraps an invalidateSize() in a requestAnimationFrame call, which is faster and less crude than a setTimeout
* manually call the _onResize handler during resize so we can avoid it when the map page is hidden -- that just breaks!
* abstract things a bit
@jdlrobson jdlrobson merged commit cad7e1f into wikimedia:master Aug 6, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants