From 6a9b31ad26568d39d4f5912b3daeeb043ec6acee Mon Sep 17 00:00:00 2001 From: Santhosh Thottingal Date: Wed, 5 Jun 2013 14:00:17 +0530 Subject: [PATCH] Use smooth scrolling for the windows when not in viewport Change-Id: I94591d17ba023d9a13e2436ddebfd0209e076845 --- resources/js/ext.uls.inputsettings.js | 2 +- resources/js/ext.uls.languagesettings.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/js/ext.uls.inputsettings.js b/resources/js/ext.uls.inputsettings.js index d21ad459..821c92d0 100644 --- a/resources/js/ext.uls.inputsettings.js +++ b/resources/js/ext.uls.inputsettings.js @@ -474,7 +474,7 @@ $.ime.preferences.enable(); mw.ime.setup(); this.$template.find( '.enabled-only' ).removeClass( 'hide' ); - this.$template[0].scrollIntoView(); + this.$template.scrollIntoView(); this.prepareToggleButton(); }, diff --git a/resources/js/ext.uls.languagesettings.js b/resources/js/ext.uls.languagesettings.js index aef293d4..e91e2048 100644 --- a/resources/js/ext.uls.languagesettings.js +++ b/resources/js/ext.uls.languagesettings.js @@ -142,7 +142,7 @@ top: top, left: left } ); - this.$window[0].scrollIntoView(); + this.$window.scrollIntoView(); }, show: function () {