2
0
Эх сурвалжийг харах

IconTree: add small pad at bottom to allow rightclick of background

trethaller 7 жил өмнө
parent
commit
a2e9bd5a2a

+ 1 - 0
bin/style.css

@@ -810,6 +810,7 @@ body.hide-subview .lm_controls {
 /* JSTree fixes */
 /* JSTree fixes */
 .jstree {
 .jstree {
   background: transparent !important;
   background: transparent !important;
+  padding-bottom: 40px;
 }
 }
 .jstree .filtered {
 .jstree .filtered {
   display: none;
   display: none;

+ 1 - 0
bin/style.less

@@ -887,6 +887,7 @@ body.hide-subview {
 
 
 .jstree {
 .jstree {
 	background:transparent !important;
 	background:transparent !important;
+	padding-bottom: 40px;
 
 
 	.filtered {
 	.filtered {
 		display: none;
 		display: none;

+ 1 - 0
hide/comp/IconTree.hx

@@ -113,6 +113,7 @@ class IconTree<T:{}> extends Component {
 		});
 		});
 		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");
+			if(node == null || node.length == 0) return;
    			var i = map.get(node[0].id);
    			var i = map.get(node[0].id);
 			onClick(i.value);
 			onClick(i.value);
 		});
 		});