Explorar o código

scroll selected element into view -> top

Joscha Jaeger %!s(int64=10) %!d(string=hai) anos
pai
achega
429767eac0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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') });