Merge pull request #5230 from gabrielbazan7/fix/scrollSendView
fix scroll resize send view and adding timeout to ionicScrollDelegate.resize
This commit is contained in:
commit
e927c00a14
8 changed files with 23 additions and 21 deletions
|
|
@ -104,14 +104,14 @@ angular.module('copayApp.controllers').controller('addressesController', functio
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
$scope.showInfo = !$scope.showInfo;
|
$scope.showInfo = !$scope.showInfo;
|
||||||
$ionicScrollDelegate.resize();
|
$ionicScrollDelegate.resize();
|
||||||
});
|
}, 10);
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.readMore = function() {
|
$scope.readMore = function() {
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
$scope.showMore = !$scope.showMore;
|
$scope.showMore = !$scope.showMore;
|
||||||
$ionicScrollDelegate.resize();
|
$ionicScrollDelegate.resize();
|
||||||
});
|
}, 10);
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.showMenu = function(allAddresses, $event) {
|
$scope.showMenu = function(allAddresses, $event) {
|
||||||
|
|
|
||||||
|
|
@ -30,22 +30,24 @@ angular.module('copayApp.controllers').controller('advancedSettingsController',
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.global = $rootScope;
|
$scope.global = $rootScope;
|
||||||
if(!$scope.global.developmentUtilitiesEnabled){
|
if (!$scope.global.developmentUtilitiesEnabled) {
|
||||||
$scope.global.developmentUtilitiesEnabled = {
|
$scope.global.developmentUtilitiesEnabled = {
|
||||||
value: false
|
value: false
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.toggledDevelopmentUtils = function (){
|
$scope.toggledDevelopmentUtils = function() {
|
||||||
if($scope.global.developmentUtilitiesEnabled.value){
|
if ($scope.global.developmentUtilitiesEnabled.value) {
|
||||||
$log.debug('User enabled development utilities.');
|
$log.debug('User enabled development utilities.');
|
||||||
$ionicScrollDelegate.resize();
|
$timeout(function() {
|
||||||
|
$ionicScrollDelegate.resize();
|
||||||
|
}, 10);
|
||||||
} else {
|
} else {
|
||||||
$log.debug('User disabled development utilities.');
|
$log.debug('User disabled development utilities.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.activateFeedbackCard = function () {
|
$scope.activateFeedbackCard = function() {
|
||||||
$scope.feedbackCardActivating = true;
|
$scope.feedbackCardActivating = true;
|
||||||
storageService.getFeedbackInfo(function(error, info) {
|
storageService.getFeedbackInfo(function(error, info) {
|
||||||
var feedbackInfo = JSON.parse(info);
|
var feedbackInfo = JSON.parse(info);
|
||||||
|
|
@ -56,10 +58,10 @@ angular.module('copayApp.controllers').controller('advancedSettingsController',
|
||||||
storageService.setFeedbackInfo(JSON.stringify(feedbackInfo), function() {
|
storageService.setFeedbackInfo(JSON.stringify(feedbackInfo), function() {
|
||||||
$log.debug('Activated feedback card with: ' + JSON.stringify(feedbackInfo));
|
$log.debug('Activated feedback card with: ' + JSON.stringify(feedbackInfo));
|
||||||
$ionicHistory.clearCache();
|
$ionicHistory.clearCache();
|
||||||
$timeout(function(){
|
$timeout(function() {
|
||||||
$scope.feedbackCardActivating = false;
|
$scope.feedbackCardActivating = false;
|
||||||
$scope.feedbackCardActivated = true;
|
$scope.feedbackCardActivated = true;
|
||||||
$timeout(function(){
|
$timeout(function() {
|
||||||
$scope.feedbackCardActivated = false;
|
$scope.feedbackCardActivated = false;
|
||||||
}, 10000);
|
}, 10000);
|
||||||
}, 500);
|
}, 500);
|
||||||
|
|
@ -67,7 +69,7 @@ angular.module('copayApp.controllers').controller('advancedSettingsController',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.resetActivateFeedbackCard = function(){
|
$scope.resetActivateFeedbackCard = function() {
|
||||||
$scope.feedbackCardActivated = false;
|
$scope.feedbackCardActivated = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ angular.module('copayApp.controllers').controller('createController',
|
||||||
$scope.resizeView = function() {
|
$scope.resizeView = function() {
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
$ionicScrollDelegate.resize();
|
$ionicScrollDelegate.resize();
|
||||||
});
|
}, 10);
|
||||||
checkPasswordFields();
|
checkPasswordFields();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ angular.module('copayApp.controllers').controller('exportController',
|
||||||
$scope.resizeView = function() {
|
$scope.resizeView = function() {
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
$ionicScrollDelegate.resize();
|
$ionicScrollDelegate.resize();
|
||||||
});
|
}, 10);
|
||||||
};
|
};
|
||||||
|
|
||||||
function getPassword(cb) {
|
function getPassword(cb) {
|
||||||
|
|
|
||||||
|
|
@ -360,7 +360,7 @@ angular.module('copayApp.controllers').controller('importController',
|
||||||
$scope.resizeView = function() {
|
$scope.resizeView = function() {
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
$ionicScrollDelegate.resize();
|
$ionicScrollDelegate.resize();
|
||||||
});
|
}, 10);
|
||||||
};
|
};
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ angular.module('copayApp.controllers').controller('joinController',
|
||||||
$scope.resizeView = function() {
|
$scope.resizeView = function() {
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
$ionicScrollDelegate.resize();
|
$ionicScrollDelegate.resize();
|
||||||
});
|
}, 10);
|
||||||
checkPasswordFields();
|
checkPasswordFields();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -187,7 +187,7 @@ angular.module('copayApp.controllers').controller('tabHomeController',
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
$ionicScrollDelegate.resize();
|
$ionicScrollDelegate.resize();
|
||||||
$scope.$apply();
|
$scope.$apply();
|
||||||
}, 100);
|
}, 10);
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -240,7 +240,7 @@ angular.module('copayApp.controllers').controller('tabHomeController',
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
$ionicScrollDelegate.resize();
|
$ionicScrollDelegate.resize();
|
||||||
$scope.$apply();
|
$scope.$apply();
|
||||||
}, 100);
|
}, 10);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -269,7 +269,7 @@ angular.module('copayApp.controllers').controller('tabHomeController',
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
$ionicScrollDelegate.resize();
|
$ionicScrollDelegate.resize();
|
||||||
$scope.$apply();
|
$scope.$apply();
|
||||||
}, 100);
|
}, 10);
|
||||||
};
|
};
|
||||||
|
|
||||||
var bitpayCardCache = function() {
|
var bitpayCardCache = function() {
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
$ionicScrollDelegate.resize();
|
$ionicScrollDelegate.resize();
|
||||||
$scope.$apply();
|
$scope.$apply();
|
||||||
});
|
}, 10);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -145,15 +145,15 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
|
||||||
|
|
||||||
if (index == wallets.length) {
|
if (index == wallets.length) {
|
||||||
$scope.checkingBalance = false;
|
$scope.checkingBalance = false;
|
||||||
|
if ($scope.hasFunds != true) {
|
||||||
|
$ionicScrollDelegate.freezeScroll(true);
|
||||||
|
}
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
$scope.$apply();
|
$scope.$apply();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
if ($scope.hasFunds != true) {
|
|
||||||
$ionicScrollDelegate.freezeScroll(true);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue