菜单错位问题
parent
ebc099e1ff
commit
fbba86cafe
|
|
@ -35,7 +35,7 @@
|
|||
"href": "",
|
||||
"children": [{
|
||||
"id": 201,
|
||||
"title": "基础组件",
|
||||
"title": "基础组件 宽度测试",
|
||||
"icon": "layui-icon layui-icon-console",
|
||||
"type": 0,
|
||||
"children": [{
|
||||
|
|
|
|||
|
|
@ -375,7 +375,7 @@ layui.define(['table', 'jquery', 'element'], function(exports) {
|
|||
topLength = height-thisHeight-10;
|
||||
}
|
||||
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({
|
||||
left: left
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue