r109166 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r109165‎ | r109166 | r109167 >
Date:17:39, 17 January 2012
Author:krinkle
Status:ok
Tags:
Comment:
[jquery.footHovzer] Remove buggy scrollstate preserver
* Intended to preserver scroll-state (which is shifted when an element to the bottom gains height). However too unstable to be more handy that it is annoying when it is not.
* Follows-up r107982
Modified paths:
  • /trunk/phase3/resources/jquery/jquery.footHovzer.js (modified) (history)

Diff [purge]

Index: trunk/phase3/resources/jquery/jquery.footHovzer.js
@@ -22,7 +22,7 @@
2323
2424 footHovzer = {
2525 update: function () {
26 - var $body, winTop;
 26+ var $body;
2727
2828 $body = $( 'body' );
2929 if ( prevHeight === undefined ) {
@@ -31,12 +31,7 @@
3232 } else {
3333 newHeight = getHovzer().outerHeight( true );
3434 $body.css( 'paddingBottom', ( parseFloat( $body.css( 'paddingBottom' ) ) - prevHeight ) + newHeight );
35 - // Update scroll so that page stays focusses on same area
36 - winTop = $(window).scrollTop();
37 - if ( $(document).height() - $(window).height() > winTop ) {
38 - $(window).scrollTop( winTop + ( newHeight - prevHeight ) );
39 - }
40 -
 35+
4136 prevHeight = newHeight;
4237 }
4338 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r107982[jquery.footHovzer] new plugin for mw-log-console and mw-debug-toolbar...krinkle01:28, 4 January 2012

Status & tagging log