소스 검색

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

trethaller 7 년 전
부모
커밋
a2e9bd5a2a
3개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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);
 		});