add scroll top when switch wallet
This commit is contained in:
parent
6f15afc638
commit
501731571b
1 changed files with 2 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('sidebarController',
|
||||
function($rootScope, $timeout, lodash, profileService, configService, go, platformInfo) {
|
||||
function($rootScope, $timeout, $ionicScrollDelegate, lodash, profileService, configService, go, platformInfo) {
|
||||
var self = this;
|
||||
self.isWindowsPhoneApp = platformInfo.isWP && platformInfo.isCordova;
|
||||
self.walletSelection = false;
|
||||
|
|
@ -28,6 +28,7 @@ angular.module('copayApp.controllers').controller('sidebarController',
|
|||
if (selectedWalletId == currentWalletId) return;
|
||||
self.walletSelection = false;
|
||||
profileService.setAndStoreFocus(selectedWalletId, function() {});
|
||||
$ionicScrollDelegate.$getByHandle('transactions').scrollTop();
|
||||
};
|
||||
|
||||
self.toggleWalletSelection = function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue