Skip to content

Commit

Permalink
(js) Fix display of mailboxes list on mobile
Browse files Browse the repository at this point in the history
Fixes #3654
  • Loading branch information
cgx committed May 24, 2016
1 parent 0773dec commit d2a4ddd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions NEWS
Expand Up @@ -8,6 +8,7 @@ Bug fixes
- [web] fixed month view when current month covers six weeks (#3663)
- [web] fixed negative offset when converting a regular event to an all-day event (#3655)
- [web] fixed event classification icon (private/confidential) in day/week/multicolumn views
- [web] fixed display of mailboxes list on mobiles (#3654)

3.1.0 (2016-05-18)
------------------
Expand Down
9 changes: 7 additions & 2 deletions UI/WebServerResources/js/Common/navController.js
Expand Up @@ -9,8 +9,8 @@
/**
* @ngInject
*/
navController.$inject = ['$rootScope', '$scope', '$timeout', '$interval', '$http', '$mdSidenav', '$mdToast', '$mdMedia', '$log', 'sgConstant', 'sgSettings', 'Alarm'];
function navController($rootScope, $scope, $timeout, $interval, $http, $mdSidenav, $mdToast, $mdMedia, $log, sgConstant, sgSettings, Alarm) {
navController.$inject = ['$rootScope', '$scope', '$timeout', '$interval', '$http', '$window', '$mdSidenav', '$mdToast', '$mdMedia', '$log', 'sgConstant', 'sgSettings', 'Alarm'];
function navController($rootScope, $scope, $timeout, $interval, $http, $window, $mdSidenav, $mdToast, $mdMedia, $log, sgConstant, sgSettings, Alarm) {

$scope.isPopup = sgSettings.isPopup;
$scope.activeUser = sgSettings.activeUser();
Expand All @@ -35,6 +35,11 @@
}
else {
$scope.leftIsClose = leftIsClose();
// Fire a window resize when opening the sidenav on a small device.
// This is a fix until the following issue is officially resolved:
// https://github.com/angular/material/issues/7309
if ($scope.leftIsClose)
angular.element($window).triggerHandler('resize');
$mdSidenav('left').toggle()
.then(function () {
$log.debug("toggle left is done");
Expand Down

0 comments on commit d2a4ddd

Please sign in to comment.