Closed bseddon closed 4 years ago
Thank you very much. And you can add custom style to zTreeStyle.css
Yes, you can add css directives to override the default values. However when using jQuery dialogs, the z-index that is needed may vary. If the zTree is added to the only dialog then the z-index will be 10000. But if the zTree is in a popup window shown over another dialog the z-index will be higher and have a value determined by jQuery.
As a result, the z-index value can only use a static value (in a CSS file) if the developer knows the zTree will only ever appear in the first dialog.
jQuery dialogs are shown with a z-index value starting at 10000. When the exedit code generates the drag visual elements (node proxies and an arrow) for a zTree in a jQuery dialog they are added to the body element without a z-index so are not visible to the user.
A solution is to update visual elements with an appropriate z-index value in the onDrag callback. I'm sharing this in case it helps anyone else using a jQuery dialog or other framework containers that use non-default z-index values.