improve final balance position

This commit is contained in:
Marty Alcala 2016-11-09 13:37:14 -05:00
commit 6dbc9057cd
2 changed files with 7 additions and 1 deletions

View file

@ -239,6 +239,10 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
if(amountHeight < 80) {
amountHeight = 80;
}
var contentMargin = amountHeight;
if(contentMargin > 180) {
contentMargin = 180;
}
var amountScale = amountHeight/180;
if(amountScale < 0.5) {
@ -254,6 +258,7 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
console.log('amountHeight', amountHeight);
$window.requestAnimationFrame(function() {
$scope.amountHeight = amountHeight + 'px';
$scope.contentMargin = contentMargin + 'px';
$scope.amountScale = 'scale3d(' + s + ',' + s + ',' + s+ ')';
console.log('$scope.amountScale', $scope.amountScale);
console.log('$scope.altAmountOpacity', $scope.altAmountOpacity);