resize view

This commit is contained in:
Javier 2016-08-05 15:44:30 -03:00
commit 8c7ad1a91d

View file

@ -1,6 +1,6 @@
'use strict'; 'use strict';
angular.module('copayApp.controllers').controller('inputAmountController', function($rootScope, $scope, $filter, profileService, platformInfo, lodash, configService, go, rateService) { angular.module('copayApp.controllers').controller('inputAmountController', function($rootScope, $scope, $filter, $timeout, $ionicScrollDelegate, profileService, platformInfo, lodash, configService, go, rateService) {
var unitToSatoshi; var unitToSatoshi;
var satToUnit; var satToUnit;
var unitDecimals; var unitDecimals;
@ -16,6 +16,9 @@ angular.module('copayApp.controllers').controller('inputAmountController', funct
satToUnit = 1 / unitToSatoshi; satToUnit = 1 / unitToSatoshi;
unitDecimals = config.unitDecimals; unitDecimals = config.unitDecimals;
$scope.resetAmount(); $scope.resetAmount();
$timeout(function() {
$ionicScrollDelegate.resize();
}, 100);
}; };
$scope.shareAddress = function(uri) { $scope.shareAddress = function(uri) {
@ -162,6 +165,9 @@ angular.module('copayApp.controllers').controller('inputAmountController', funct
$scope.specificAmount = amount; $scope.specificAmount = amount;
$scope.specificAlternativeAmount = alternativeAmount; $scope.specificAlternativeAmount = alternativeAmount;
$timeout(function() {
$ionicScrollDelegate.resize();
}, 100);
} else { } else {
self.setAmount(amount, alternativeAmount, $scope.showAlternativeAmount); self.setAmount(amount, alternativeAmount, $scope.showAlternativeAmount);
$scope.cancel(); $scope.cancel();