r101193 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r101192‎ | r101193 | r101194 >
Date:20:55, 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
@@ -14,7 +14,7 @@
1515 var sq = document.getElementById( 'sq' );
1616 var iw = ( document.documentElement.clientWidth ) ? document.documentElement.clientWidth : document.body.clientWidth;
1717 sq.style.width = ( iw - 160 ) + pixels;
18 -search.style.width = ( iw - 162 ) + pixels;;
 18+search.style.width = ( iw - 164 ) + pixels;;
1919
2020 results.style.width = ( sq.offsetWidth - 2 ) + pixels;
2121 results.style.left = sq.offsetLeft + pixels;

Status & tagging log