Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Starting from version 6.x-1.4 and newer (6.x-1.5; 6.x-1.6; 6.x-1.x-dev) the Language dropdown switcher block when placed on a horizontal menu region - jumps to a new line out of control (I want the block to stay side by side with other horizontal menu items).
Even when I replaced in the code all <div>
with <span>
, and all display:block;
with display:inline;
- I still see double <div><div...
tags in the page source:
<form action="/" accept-charset="UTF-8" method="post" id="lang-dropdown-form">
<div><div class="form-item" id="edit-lang-dropdown-select-wrapper">
<select name="lang_dropdown_select" style="width:100px" class="form-select" id="edit-lang-dropdown-select" ><option value="http://tautasvara.lv/" selected="selected">Latviešu</option><option value="http://tautasvara.lv/ru">Русский</option><option value="http://tautasvara.lv/en">English</option></select>
</div>
<noscript><span>
<input type="submit" name="op" id="edit-submit" value="Go" class="form-submit" />
</span></noscript><input type="hidden" name="form_build_id" id="form-826c10f5e41c42c7f3f45ae176fc4520" value="form-826c10f5e41c42c7f3f45ae176fc4520" />
<input type="hidden" name="form_id" id="edit-lang-dropdown-form" value="lang_dropdown_form" />
</div></form>
P.S. The same thing happens with the javascript widget. Tested on IE8, Firefox 4, Opera 11, Chrome 13. Previous versions (until 6.x-1.3) didn't have this bug.
Comment | File | Size | Author |
---|---|---|---|
#1 | Language-Switcher-Dropdown-1.4-jums-to-new-line.JPG | 36.58 KB | reinis.berzins |
Language-Switcher-Dropdown-1.4-jums-to-new-line.JPG | 36.58 KB | reinis.berzins |
Comments
Comment #1
reinis.berzins CreditAttribution: reinis.berzins commentedI re-post the problem description as I couldn't edit the the original erroneous post.
Starting from version 6.x-1.4 and newer (6.x-1.5; 6.x-1.6; 6.x-1.x-dev) the Language dropdown switcher block when placed on a horizontal menu region - jumps to a new line out of control (I want the block to stay side by side with other horizontal menu items).
Even when I replaced in the code all
<div>
with<span>
, and all occurrences ofdisplay:block;
withdisplay:inline;
- I still see double<div><div...
tags in the page source:P.S. The same thing happens with the javascript widget. Tested on IE8, Firefox 4, Chrome 13, Opera 11. Until version 6.x-1.3 it didn't have this bug.
Comment #2
JGO CreditAttribution: JGO commentedSame problem here, anyone managed to fix ? :s
Comment #3
papirrin CreditAttribution: papirrin commentedSame problem.
Comment #4
Leahcim CreditAttribution: Leahcim commentedSame
Comment #4.0
Leahcim CreditAttribution: Leahcim commentedAdded code HTML tags (as shown in formatting instructions below), otherwise code doesn't display.
Comment #5
kala4ek