r101194 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r101193‎ | r101194 | r101195 >
Date:20:56, 28 October 2011
Author:preilly
Status:old
Tags:
Comment:
expand search bar to max width
Modified paths:
  • /trunk/extensions/MobileFrontend/javascripts/opensearch.js (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/javascripts/opensearch.js
@@ -13,8 +13,8 @@
1414 var search = document.getElementById( 'search' );
1515 var sq = document.getElementById( 'sq' );
1616 var iw = ( document.documentElement.clientWidth ) ? document.documentElement.clientWidth : document.body.clientWidth;
17 -sq.style.width = ( iw - 160 ) + pixels;
18 -search.style.width = ( iw - 164 ) + pixels;;
 17+sq.style.width = ( iw - 60 ) + pixels;
 18+search.style.width = ( iw - 64 ) + pixels;;
1919
2020 results.style.width = ( sq.offsetWidth - 2 ) + pixels;
2121 results.style.left = sq.offsetLeft + pixels;

Status & tagging log