ComboTree provided zindex; ComboTree not show

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/hua_ban_yu/article/details/82352109

When using easyUI of ComboTree settings drop-down box, while the use of plug-in layer, resulting in the drop-down menu ComboTree not reveal, after an investigation found that the default value is Combotree zindex drop-down box content is 110000 and the layer pop-up box zindex far greater than it, does not reveal the contents drop-down box click leads ComboTree

Solution: As long as the modified value zindex larger than the value of the layer can be

solution:

Values: 1. Program 6220 can go directly to the row change easyUI.js $ .fn.menu.defaults = {110000 zIndex}  

 

Scheme 2. onShowPanel: function () {$ (this) .combotree ( 'panel') panel ( 'panel') css ( 'zIndex', 20000000);..} Reset the value of zindex

onShowPanel:function(){
$(this).combotree('panel').panel('panel').css('zIndex', 20000000);
}

Scheme 3: direct overwrite $ .fn.menu.defaults = {zIndex: 2000000} value

Guess you like

Origin blog.csdn.net/hua_ban_yu/article/details/82352109