diff --git a/public/views/includes/topbar.html b/public/views/includes/topbar.html index e47b1c061..6feeafdef 100644 --- a/public/views/includes/topbar.html +++ b/public/views/includes/topbar.html @@ -1,7 +1,7 @@ - diff --git a/src/js/controllers/index.js b/src/js/controllers/index.js index 58903f302..0fc126499 100644 --- a/src/js/controllers/index.js +++ b/src/js/controllers/index.js @@ -18,7 +18,6 @@ angular.module('copayApp.controllers').controller('indexController', function($r ret.historyShowMoreLimit = 10; ret.isSearching = false; ret.prevState = 'walletHome'; - ret.physicalScreenWidth = ((window.innerWidth > 0) ? window.innerWidth : screen.width); ret.menu = [{ 'title': gettext('Receive'), @@ -62,6 +61,7 @@ angular.module('copayApp.controllers').controller('indexController', function($r } $timeout(function() { + $scope.physicalScreenWidth = ((window.innerWidth > 0) ? window.innerWidth : screen.width) < 768; profileService.isDisclaimerAccepted(function(val) { $scope.isDisclaimerAccepted = val; }); @@ -1685,7 +1685,7 @@ angular.module('copayApp.controllers').controller('indexController', function($r }); $rootScope.$on('Local/WindowResize', function() { - self.physicalScreenWidth = ((window.innerWidth > 0) ? window.innerWidth : screen.width); + $scope.physicalScreenWidth = ((window.innerWidth > 0) ? window.innerWidth : screen.width) < 768; }); $rootScope.$on('Local/NeedsConfirmation', function(event, txp, cb) {