Przeglądaj źródła

scroll selected element into view -> top

Joscha Jaeger 10 lat temu
rodzic
commit
429767eac0
1 zmienionych plików z 1 dodań i 1 usunięć
  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') });