Przeglądaj źródła

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

trethaller 7 lat temu
rodzic
commit
a2e9bd5a2a
3 zmienionych plików z 3 dodań i 0 usunięć
  1. 1 0
      bin/style.css
  2. 1 0
      bin/style.less
  3. 1 0
      hide/comp/IconTree.hx

+ 1 - 0
bin/style.css

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

+ 1 - 0
bin/style.less

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

+ 1 - 0
hide/comp/IconTree.hx

@@ -113,6 +113,7 @@ class IconTree<T:{}> extends Component {
 		});
 		element.on("click.jstree", function (event) {
 			var node = new Element(event.target).closest("li");
+			if(node == null || node.length == 0) return;
    			var i = map.get(node[0].id);
 			onClick(i.value);
 		});