Index: trunk/extensions/MobileFrontend/javascripts/application.js |
— | — | @@ -53,8 +53,10 @@ |
54 | 54 | n.display = n.display == 'block' ? 'none' : 'block'; |
55 | 55 | if (n.display == 'block') { |
56 | 56 | 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 | + } |
59 | 61 | } |
60 | 62 | } |
61 | 63 | }; |