function _onWindowResize() {
        var newMenuCollapsed = baSidebarService.shouldMenuBeCollapsed();
        var newMenuHeight = _calculateMenuHeight();
        if (newMenuCollapsed != baSidebarService.isMenuCollapsed() || scope.menuHeight != newMenuHeight) {
          scope.$apply(function() {
            scope.menuHeight = newMenuHeight;
            baSidebarService.setMenuCollapsed(newMenuCollapsed)
          });
        }
      }
// watch window resize to change menu collapsed state if needed
watch window resize to change menu collapsed state if needed
watch window resize to change menu collapsed state if needed
function _onWindowResize() {
        var newMenuCollapsed = baSidebarService.shouldMenuBeCollapsed();
        var newMenuHeight = _calculateMenuHeight();
        if (newMenuCollapsed != baSidebarService.isMenuCollapsed() || scope.menuHeight != newMenuHeight) {
          scope.$apply(function() {
            scope.menuHeight = newMenuHeight;
            baSidebarService.setMenuCollapsed(newMenuCollapsed)
          });
        }
      }
function _onWindowResize ( ) { var newMenuCollapsed = baSidebarService . shouldMenuBeCollapsed ( ) ; var newMenuHeight = _calculateMenuHeight ( ) ; if ( newMenuCollapsed != baSidebarService . isMenuCollapsed ( ) || scope . menuHeight != newMenuHeight ) { scope . $apply ( function ( ) { scope . menuHeight = newMenuHeight ; baSidebarService . setMenuCollapsed ( newMenuCollapsed ) } ) ; } }
watch window resize to change menu collapsed state if needed
watch window resize to change menu collapsed state if needed