mobile: work around leaflet not seeing the WebView size in some cases, causing odd map issues at startup
not 100% certain it fixes it yet, as it doesn't happen every single time...
Changed the chain of if statements to else-if
Merge pull request #911 from Beakerboy/patch-3

Changed the chain of if statements to else-if
Merge pull request #31 from jonatkins/master

.