Skip to content

Commit

Permalink
Ensure that the map has a fixed value on iOS
Browse files Browse the repository at this point in the history
Otherwise, it is completely hidden.
We may want to offer the option to resize the map div in the future
  • Loading branch information
shankari committed Feb 17, 2021
1 parent 9b1a016 commit 089797e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions www/js/diary/infinite_scroll_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,7 @@ angular.module('emission.main.diary.infscrolllist',['ui-leaflet',

$ionicPlatform.ready().then(function() {
$scope.setupInfScroll();
$scope.isAndroid = $window.device.platform.toLowerCase() === "android";

$scope.$on('$ionicView.enter', function(ev) {
// Workaround from
Expand Down
2 changes: 1 addition & 1 deletion www/templates/diary/trip-detail-popover.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h1 class="title dark-color" style="textAlign: center;">{{currgj.display_date}}<
</div>
<div style="height: 20px;"></div>
<leaflet geojson="currgj" id="detailPopoverMap" defaults="defaults"
height="50%" width="100%"
height="isAndroid? '50%': '600px'" width="100%"
style="padding-right: 20px !important; padding-left: 20px !important"></leaflet>
</ion-content>
</ion-modal-view>

0 comments on commit 089797e

Please sign in to comment.