Browse Source

Scene tree: styling improvements

trethaller 6 years ago
parent
commit
32fc90efba
5 changed files with 7 additions and 1 deletions
  1. BIN
      bin/libs/jstree/default-dark/32px.png
  2. 2 0
      bin/libs/jstree/jstree.js
  3. 2 0
      bin/style.css
  4. 2 0
      bin/style.less
  5. 1 1
      hide/comp/IconTree.hx

BIN
bin/libs/jstree/default-dark/32px.png


+ 2 - 0
bin/libs/jstree/jstree.js

@@ -844,6 +844,7 @@
 						$(e.currentTarget).mouseenter();
 						$(e.currentTarget).mouseenter();
 						this.element.attr('tabindex', '-1');
 						this.element.attr('tabindex', '-1');
 					}, this))
 					}, this))
+				/*
 				.on('focus.jstree', $.proxy(function () {
 				.on('focus.jstree', $.proxy(function () {
 						if(+(new Date()) - was_click > 500 && !this._data.core.focused) {
 						if(+(new Date()) - was_click > 500 && !this._data.core.focused) {
 							was_click = 0;
 							was_click = 0;
@@ -853,6 +854,7 @@
 							}
 							}
 						}
 						}
 					}, this))
 					}, this))
+				*/
 				.on('mouseenter.jstree', '.jstree-anchor', $.proxy(function (e) {
 				.on('mouseenter.jstree', '.jstree-anchor', $.proxy(function (e) {
 						this.hover_node(e.currentTarget);
 						this.hover_node(e.currentTarget);
 					}, this))
 					}, this))

+ 2 - 0
bin/style.css

@@ -1065,6 +1065,8 @@ body.hide-subview .lm_controls {
 .jstree {
 .jstree {
   background: transparent !important;
   background: transparent !important;
   padding-bottom: 40px;
   padding-bottom: 40px;
+  outline: none;
+  position: relative;
 }
 }
 .jstree .filtered {
 .jstree .filtered {
   display: none;
   display: none;

+ 2 - 0
bin/style.less

@@ -1173,6 +1173,8 @@ body.hide-subview {
 .jstree {
 .jstree {
 	background:transparent !important;
 	background:transparent !important;
 	padding-bottom: 40px;
 	padding-bottom: 40px;
+	outline: none;
+	position: relative;
 
 
 	.filtered {
 	.filtered {
 		display: none;
 		display: none;

+ 1 - 1
hide/comp/IconTree.hx

@@ -114,7 +114,7 @@ class IconTree<T:{}> extends Component {
 					callb.call(this, makeContent(obj.parent == null ? null : map.get(obj.id)));
 					callb.call(this, makeContent(obj.parent == null ? null : map.get(obj.id)));
 				}
 				}
 			},
 			},
-			plugins : [ "wholerow", "dnd", "changed" ],
+			plugins : [ "dnd", "changed" ],
 		});
 		});
 		element.on("click.jstree", function (event) {
 		element.on("click.jstree", function (event) {
 			var node = new Element(event.target).closest("li");
 			var node = new Element(event.target).closest("li");