Greetings. We are building an app using MapBox and Ionic. We have an issue with the MapBox div getting displaced after opening a modal in another view.
Steps to reproduce:
(The app is in Danish language.)
- Go to a demo of the app here: http://citystories.dk/app/www/#/tab/map.
- View in device mode i.e. iPhone 6.
- See that the MapBox map loads.
- Click on the Feed tab.
- Click the plus sign in the top right corner.
- Click “Luk” in the top right corner to close the modal.
- Click on the Kort tab, to go back to the map.
Res: The MapBox div is now displaced and unusable.
Why is the modal causing this when it’s two different views? Is there another fix for it? The code is available here: https://github.com/andersravn/citystoriesapp/tree/master/www
Is this perhaps a MapBox issue?