mirror of
https://gitee.com/layui/layui.git
synced 2025-10-07 07:04:30 +08:00
fix(element-nav): 纵向菜单出现滚动条时,滑块位置异常
This commit is contained in:
@@ -485,7 +485,7 @@ layui.define('jquery', function(exports) {
|
||||
if (!child[0]) {
|
||||
var thisA = othis.children('.'+ NAV_TITLE);
|
||||
bar.css({
|
||||
top: othis.offset().top - nav.offset().top,
|
||||
top: othis.offset().top - nav.offset().top + nav.scrollTop(),
|
||||
height: (thisA[0] ? thisA : othis).outerHeight(),
|
||||
opacity: 1
|
||||
});
|
||||
|
Reference in New Issue
Block a user