[Mobile] Hide Tree
On selecting a node in the tree, if the user is on phone and in portrait, than emit up to the browse controller to call treeSlide(), which will hide the tree menu. Also adjusted the agent service to properly check for orientation using window.innerHeight/ Width. Also created function for the selection of an object in BrowseController.
This commit is contained in:
@@ -187,6 +187,12 @@ define(
|
||||
navigationService.removeListener(setNavigation);
|
||||
});
|
||||
|
||||
// If the user has selected an object (and is portrait
|
||||
// on a phone), then hide the tree menu
|
||||
$scope.$on("select-obj", function () {
|
||||
$scope.treeSlide();
|
||||
});
|
||||
|
||||
$scope.backArrow = navigateToParent;
|
||||
|
||||
$scope.checkRoot = checkRoot;
|
||||
|
||||
Reference in New Issue
Block a user