Skip to content

Commit

Permalink
Build v2.22.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Niels Dequeker committed Feb 16, 2017
1 parent ea0ce89 commit cbf532b
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 12 deletions.
2 changes: 1 addition & 1 deletion bower.json
@@ -1,6 +1,6 @@
{
"name": "angular-ui-tree",
"version": "2.22.2",
"version": "2.22.4",
"homepage": "https://github.com/angular-ui-tree/angular-ui-tree",
"authors": [
"Jim Liu <https://github.com/JimLiu>",
Expand Down
6 changes: 5 additions & 1 deletion dist/angular-ui-tree.css
Expand Up @@ -37,7 +37,7 @@
}

.angular-ui-tree-placeholder {
margin: 5px 0;
margin: 10px;
padding: 0;
min-height: 30px;
}
Expand All @@ -59,3 +59,7 @@
z-index: 999;
opacity: .8;
}

.angular-ui-tree-drag .tree-node-content {
margin-top: 0;
}
10 changes: 7 additions & 3 deletions dist/angular-ui-tree.js
@@ -1,6 +1,6 @@
/**
* @license Angular UI Tree v2.22.2
* (c) 2010-2016. https://github.com/angular-ui-tree/angular-ui-tree
* @license Angular UI Tree v2.22.4
* (c) 2010-2017. https://github.com/angular-ui-tree/angular-ui-tree
* License: MIT
*/
(function () {
Expand Down Expand Up @@ -756,6 +756,7 @@

//Check if it or it's parents has a 'data-nodrag' attribute
el = angular.element(e.target);
isUiTreeRoot = el[0].attributes['ui-tree'];
while (el && el[0] && el[0] !== element && !isUiTreeRoot) {

//Checking that I can access attributes.
Expand Down Expand Up @@ -822,7 +823,7 @@

//Getting starting position of element being moved.
pos = UiTreeHelper.positionStarted(eventObj, element);
placeElm.css('height', UiTreeHelper.height(element) + 'px');
placeElm.css('height', element.prop('offsetHeight') + 'px');

//Creating drag element to represent node.
dragElm = angular.element($window.document.createElement(scope.$parentNodesScope.$element.prop('tagName')))
Expand Down Expand Up @@ -1150,6 +1151,7 @@
if (targetNode.collapsed) {
if (scope.expandOnHover === true || (angular.isNumber(scope.expandOnHover) && scope.expandOnHover === 0)) {
targetNode.collapsed = false;
targetNode.$treeScope.$callbacks.toggle(false, targetNode);
} else if (scope.expandOnHover !== false && angular.isNumber(scope.expandOnHover) && scope.expandOnHover > 0) {

//Triggering expansion.
Expand All @@ -1161,6 +1163,7 @@
{
scope.$callbacks.expandTimeoutEnd();
targetNode.collapsed = false;
targetNode.$treeScope.$callbacks.toggle(false, targetNode);
}, scope.expandOnHover);
}
}
Expand Down Expand Up @@ -1362,6 +1365,7 @@
}
]);
})();

(function () {
'use strict';

Expand Down
2 changes: 1 addition & 1 deletion dist/angular-ui-tree.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/angular-ui-tree.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "angular-ui-tree",
"version": "2.22.2",
"version": "2.22.4",
"description": "An AngularJS UI component that can sort nested lists, provides drag & drop support and doesn't depend on jQuery",
"license": "MIT",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions source/main.js
@@ -1,6 +1,6 @@
/**
* @license Angular UI Tree v2.22.2
* (c) 2010-2016. https://github.com/angular-ui-tree/angular-ui-tree
* @license Angular UI Tree v2.22.4
* (c) 2010-2017. https://github.com/angular-ui-tree/angular-ui-tree
* License: MIT
*/
(function () {
Expand Down

0 comments on commit cbf532b

Please sign in to comment.