Use smooth scrolling for the windows when not in viewport

Change-Id: I94591d17ba023d9a13e2436ddebfd0209e076845
This commit is contained in:
Santhosh Thottingal
2013-06-05 14:00:17 +05:30
committed by Gerrit Code Review
parent b057531602
commit 6a9b31ad26
2 changed files with 2 additions and 2 deletions

View File

@@ -474,7 +474,7 @@
$.ime.preferences.enable(); $.ime.preferences.enable();
mw.ime.setup(); mw.ime.setup();
this.$template.find( '.enabled-only' ).removeClass( 'hide' ); this.$template.find( '.enabled-only' ).removeClass( 'hide' );
this.$template[0].scrollIntoView(); this.$template.scrollIntoView();
this.prepareToggleButton(); this.prepareToggleButton();
}, },

View File

@@ -142,7 +142,7 @@
top: top, top: top,
left: left left: left
} ); } );
this.$window[0].scrollIntoView(); this.$window.scrollIntoView();
}, },
show: function () { show: function () {