Nuanda / smogmapper

Smog Mapper
http://smogmapper.smogathon.pl/
1 stars 0 forks source link

Map - (mobile) map is displaced after several sidebar uses #50

Open Nuanda opened 8 years ago

Nuanda commented 8 years ago

Could be connected to https://github.com/Leaflet/Leaflet/issues/4069

After you play a bit on a phone with it, esp. when bringing up the side panel and going back to the map again, it tends to "shift" horizontally and more and more grey space is shown. Investigate and fix ;).

Nuanda commented 8 years ago

@kammerer Tomasz, could you try to debug this terrible problem, in a bit of spare time ;)? Most of the time running invalidateSize helps (I think) but this should probably not be required in a normal map operation.

Nuanda commented 8 years ago

I need help on this one. Anyone? ;) @mkasztelnik @kammerer

kammerer commented 8 years ago

I will have a look.

kammerer commented 8 years ago

I have noticed it before, when charts were shown in the sidebar, but now I can't reproduce it anymore.

Nuanda commented 8 years ago

It still shows on my phone when I use the menu button to bring the sidebar forward, then to go back. There usually is a stripe of grey that does not render map tiles (or perhaps the tiles are rendered behind the background)?

kammerer commented 8 years ago

Ok, I found I can reproduce it by opening the sidebard, scrolling some, and closing it again.