From 8c7ad1a91d90d61b768c48f1a2a687817c629626 Mon Sep 17 00:00:00 2001 From: Javier Date: Fri, 5 Aug 2016 15:44:30 -0300 Subject: [PATCH] resize view --- src/js/controllers/modals/inputAmount.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/js/controllers/modals/inputAmount.js b/src/js/controllers/modals/inputAmount.js index 281b7b777..8c2cbf288 100644 --- a/src/js/controllers/modals/inputAmount.js +++ b/src/js/controllers/modals/inputAmount.js @@ -1,6 +1,6 @@ '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 satToUnit; var unitDecimals; @@ -16,6 +16,9 @@ angular.module('copayApp.controllers').controller('inputAmountController', funct satToUnit = 1 / unitToSatoshi; unitDecimals = config.unitDecimals; $scope.resetAmount(); + $timeout(function() { + $ionicScrollDelegate.resize(); + }, 100); }; $scope.shareAddress = function(uri) { @@ -162,6 +165,9 @@ angular.module('copayApp.controllers').controller('inputAmountController', funct $scope.specificAmount = amount; $scope.specificAlternativeAmount = alternativeAmount; + $timeout(function() { + $ionicScrollDelegate.resize(); + }, 100); } else { self.setAmount(amount, alternativeAmount, $scope.showAlternativeAmount); $scope.cancel();