See #1269. Fix for leaflet fullscreen issue.