r100665 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r100664‎ | r100665 | r100666 >
Date:23:39, 24 October 2011
Author:preilly
Status:deferred
Tags:
Comment:
search suggestions and interwiki links
Modified paths:
  • /trunk/extensions/MobileFrontend/javascripts/application.js (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/javascripts/application.js
@@ -53,8 +53,10 @@
5454 n.display = n.display == 'block' ? 'none' : 'block';
5555 if (n.display == 'block') {
5656 if ( languageSelection ) {
57 - var newWidth = languageSelection.offsetWidth + 30;
58 - n.width = newWidth + 'px';
 57+ if ( languageSelection.offsetWidth > 175 ) {
 58+ var newWidth = languageSelection.offsetWidth + 30;
 59+ n.width = newWidth + 'px';
 60+ }
5961 }
6062 }
6163 };

Status & tagging log