easyui树重叠了,怎么解决

树成这样了,找不到原因
2025年03月18日 20:55
有4个网友回答
网友(1):

var width = $(window).width()-80;
var height = $(window).height()-120;
stView_layout = $('#stView_layout').layout({
width: width,
height: height
});
station_view = $('#stationView').window({
title: '测站导航',
left:50,
top:80,
width: width,
modal: false,
shadow: false,
closed: true,
height: height,
onResize:function(w,h){
if(stView_treegrid){
stView_treegrid.treegrid({
width:w-20,
height:h-260
});
}
}
});

网友(2):

调试下div的高度试试。

网友(3):

那棵树的容器高度不够导致重叠了
希望能够帮到你

网友(4):

略有喜感。