Quellcode durchsuchen

scroll selected element into view -> top

Joscha Jaeger vor 10 Jahren
Ursprung
Commit
429767eac0
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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') });