瀏覽代碼

scroll selected element into view -> top

Joscha Jaeger 10 年之前
父節點
當前提交
429767eac0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/allplatforms/classes/FileManagerWindow.js

+ 1 - 1
src/allplatforms/classes/FileManagerWindow.js

@@ -832,7 +832,7 @@ SC.loadPackage({ 'FileManagerWindow': {
                         	
                         	self.get('directoryListing').querySelector('[data-path="'+ arg.selectPath +'"]').classList.add('active');
 
-                            self.get('directoryListing').querySelector('[data-path="'+ arg.selectPath +'"]').scrollIntoView(false);
+                            self.get('directoryListing').querySelector('[data-path="'+ arg.selectPath +'"]').scrollIntoView(true);
                         	
                         	self.set({ selectedType: self.get('directoryListing').querySelector('[data-path="'+ arg.selectPath +'"]').getAttribute('data-type') });
                         	self.set({ selectedName: self.get('directoryListing').querySelector('[data-path="'+ arg.selectPath +'"]').getAttribute('data-name') });