r101435 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r101434‎ | r101435 | r101436 >
Date:23:37, 31 October 2011
Author:preilly
Status:deferred
Tags:
Comment:
1.18wmf1: MFT r101433
Modified paths:
  • /branches/wmf/1.18wmf1/extensions/MobileFrontend/javascripts/opensearch.js (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/extensions/MobileFrontend/javascripts/opensearch.js
@@ -63,7 +63,7 @@
6464 var iw = ( document.documentElement.clientWidth ) ? document.documentElement.clientWidth : document.body.clientWidth;
6565 sb.style.width = ( iw - 30 ) + pixels;
6666 sq.style.width = ( iw - 110 ) + pixels;
67 - search.style.width = ( iw - 140 ) + pixels;
 67+ search.style.width = ( iw - 130 ) + pixels;
6868 if ( results ) {
6969 results.style.width = ( sq.offsetWidth - 2 ) + pixels;
7070 results.style.left = sq.offsetLeft + pixels;
@@ -77,13 +77,13 @@
7878 function updateOrientationSearchWidth() {
7979 switch( window.orientation ) {
8080 case 0:
81 - updateSearchWidth();
 81+ setTimeout( "updateSearchWidth()", 200 );
8282 break;
8383 case 90:
84 - updateSearchWidth();
 84+ setTimeout( "updateSearchWidth()", 200 );
8585 break;
8686 case -90:
87 - updateSearchWidth();
 87+ setTimeout( "updateSearchWidth()", 200 );
8888 break;
8989 }
9090 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r101433fix on orientation change issuepreilly23:36, 31 October 2011

Status & tagging log