菜单错位问题
parent
ebc099e1ff
commit
fbba86cafe
|
|
@ -35,7 +35,7 @@
|
||||||
"href": "",
|
"href": "",
|
||||||
"children": [{
|
"children": [{
|
||||||
"id": 201,
|
"id": 201,
|
||||||
"title": "基础组件",
|
"title": "基础组件 宽度测试",
|
||||||
"icon": "layui-icon layui-icon-console",
|
"icon": "layui-icon layui-icon-console",
|
||||||
"type": 0,
|
"type": 0,
|
||||||
"children": [{
|
"children": [{
|
||||||
|
|
|
||||||
|
|
@ -375,7 +375,7 @@ layui.define(['table', 'jquery', 'element'], function(exports) {
|
||||||
topLength = height-thisHeight-10;
|
topLength = height-thisHeight-10;
|
||||||
}
|
}
|
||||||
if (!$(this).is(".layui-nav-item")) {
|
if (!$(this).is(".layui-nav-item")) {
|
||||||
var left = $(this).offset().left + 132;
|
var left = $(this).offset().left + $(this).width()+2;
|
||||||
$(this).children(".layui-nav-child").offset({
|
$(this).children(".layui-nav-child").offset({
|
||||||
left: left
|
left: left
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue