* Code for fix bug by func scrollIntoView .

This commit is contained in:
guofeilong
2023-04-10 10:21:38 +08:00
parent 2ef5e58779
commit 25c91f0658
+1 -2
View File
@@ -289,8 +289,7 @@ $(function()
if(isFirstLoad) ele.data('zui.tree').collapse();
var $leaf = ele.find('li.active');
if($leaf.length && $('#fileTree').height() >= $('#sideBar').height()) $leaf[$leaf.length - 1].scrollIntoView(true);
if($leaf.length && $('#fileTree').height() >= $('#sideBar').height()) $('#sideBar')[0].scrollTop = $($leaf[$leaf.length - 1]).offset().top;
ele.on('click', '.icon-drop', function(e)
{