fix(element-nav): 纵向菜单出现滚动条时,滑块位置异常 (#2826)

This commit is contained in:
morning-star
2025-09-25 19:08:26 +08:00
committed by GitHub
parent 1ec6c91da6
commit 2388d4c2e1

View File

@@ -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
});