scrollable contacts fix

This commit is contained in:
Sebastiaan Pasma 2018-07-13 11:44:24 +02:00
commit 02e22517cb
No known key found for this signature in database
GPG key ID: 9A2B0C8B95A1D26F
3 changed files with 6 additions and 3 deletions

View file

@ -250,6 +250,7 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
};
$scope.$on("$ionicView.beforeEnter", function(event, data) {
$scope.isIOS = platformInfo.isIOS && platformInfo.isCordova;
$scope.showWalletsBch = $scope.showWalletsBtc = $scope.showWallets = false;
$scope.checkingBalance = true;

View file

@ -6,7 +6,10 @@
width: 100%;
}
&-contacts {
height: calc(100vh - 300px - 50px - 44px);
height: calc(100vh - 300px /* button container */ - 50px /* bottom-tab-menu */ - 44px /* header top */);
&.ios {
height: calc(100vh - 300px - 50px - 44px - 20pt); // Remove the notification-bar height on iOS
}
overflow: scroll;
}

View file

@ -86,10 +86,9 @@
</div>
</div>
</div>
<div id="tab-send-contacts" class="row" ng-if="hasContacts && hasWallets && hasFunds">
<div id="tab-send-contacts" class="row" ng-class="{'ios':isIOS}" ng-if="hasContacts && hasWallets && hasFunds">
<div class="col">
<div class="card contacts">
<div class="item item-icon-right item-heading">
<div translate>Contacts</div>
<div translate class="subtitle"><span style="">Saved frequently used addresses</span></div>