Merge pull request #274 from Bitcoin-com/wallet/sprint/20

Wallet/sprint/20
This commit is contained in:
Jean-Baptiste Dominguez 2018-08-13 16:15:03 +09:00 committed by GitHub
commit 1c38298bbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -304,10 +304,13 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
};
function refreshAmountSection(scrollPos) {
var AMOUNT_HEIGHT_BASE = 270;
var AMOUNT_HEIGHT_BASE = 210;
$scope.showBalanceButton = false;
if ($scope.status) {
$scope.showBalanceButton = ($scope.status.totalBalanceSat != $scope.status.spendableAmount);
if ($scope.showBalanceButton) {
AMOUNT_HEIGHT_BASE = 270;
}
}
if (!$scope.amountIsCollapsible) {
var t = ($scope.showBalanceButton ? 15 : 45);