improve final balance position
This commit is contained in:
parent
e2cd188e39
commit
6dbc9057cd
2 changed files with 7 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@
|
|||
ng-show="!updateStatusError && wallet.walletScanStatus != 'error' && !wallet.balanceHidden"
|
||||
on-hold="hideToggle()"
|
||||
ng-style="{'transform': amountScale}"
|
||||
style="margin-top: 5px;"
|
||||
>
|
||||
<strong ng-if="!status.pendingAmount" class="size-36">{{status.totalBalanceStr}}</strong>
|
||||
<div
|
||||
|
|
@ -70,7 +71,7 @@
|
|||
<span ng-include="'views/includes/walletInfo.html'"></span>
|
||||
</div>
|
||||
</div> <!-- oh -->
|
||||
<ion-content on-scroll="getScrollPosition()" ng-style="{'margin-top': amountHeight}">
|
||||
<ion-content on-scroll="getScrollPosition()" ng-style="{'margin-top': contentMargin}">
|
||||
<ion-refresher
|
||||
ng-if="isAndroid"
|
||||
pulling-icon="ion-ios-refresh"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue