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

main
morning-star 2025-09-25 19:08:26 +08:00 committed by GitHub
parent 1ec6c91da6
commit 2388d4c2e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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