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.
The initial CSS for this module is using float:left to put the select areas next to each other, causing wrapping issues on following fields
Comment | File | Size | Author |
---|---|---|---|
#12 | multiselect-css-wrapping-12576854-12.patch | 351 bytes | lamp5 |
#11 | after.png | 78.6 KB | volkswagenchick |
#10 | css-improvment-2852660-10.patch | 784 bytes | dani3lr0se |
#8 | css-improvement-2852660.png | 104.26 KB | dani3lr0se |
#7 | multiselect-css-wrapping-12576854-7.patch | 563 bytes | joshua.roberson |
Comments
Comment #2
kducharm CreditAttribution: kducharm at CivicActions commentedPatch to improve CSS using inline-blocks, at a later time the whole CSS should be redone
Comment #3
kducharm CreditAttribution: kducharm at CivicActions commentedComment #4
joshua.roberson CreditAttribution: joshua.roberson commentedI have the same issue where the field that follows the multiselect field floats to the right. I also noticed if the browser width is less, there is a spacing issue with each option in the multiselect.
Comment #5
joshua.roberson CreditAttribution: joshua.roberson commentedThe patch fixes the float problem, but the multiselect layout is messed up now where the selected list is under the unselected list.
Comment #6
joshua.roberson CreditAttribution: joshua.roberson commentedComment #7
joshua.roberson CreditAttribution: joshua.roberson commentedHidding one of the images where unselected and selected were above each other. From the CSS, it looks to be intentional.
This patch should fix the float issue. Tested on a Mac using FF and Chrome.
Comment #8
dani3lr0se CreditAttribution: dani3lr0se at Hook 42 commentedThis works for me. Patch me applied successfully and fixes the float issue. Tested on Mac with most recent version of Chrome. See attached screenshots. Thanks for the work on this. :)
Comment #9
nerdsteinCurrently the patch does not apply. I recently merged another issue that touched the CSS file. Re-roll needed
Comment #10
dani3lr0se CreditAttribution: dani3lr0se at Hook 42 commentedPatch was rerolled. Here is an updated version since code has been merged into the project.
Comment #11
volkswagenchickPatch applied clean via simplytest.me. That patch appears to address the float issue. Screenshot attached. Marking RTBC
Comment #12
lamp5To fix it we do not need any extra tags in the code.
Comment #13
yaach CreditAttribution: yaach commentedPatch #12 fixed it for me.
Comment #14
joshua.roberson CreditAttribution: joshua.roberson commentedUsing the dev branch without any patches, I could not reproduce this issue. I did some digging and it seems the following commit to the CSS file fixed the issue. Specifically adding this part:
https://cgit.drupalcode.org/multiselect/commit/?id=fe09e47
That being said, I don't see a need for this patch anymore. Can anyone else confirm this as well?
Basically this other issue was added after this one as a duplicate but was not marked as such.
https://www.drupal.org/project/multiselect/issues/2981851
Comment #15
aleksipCan confirm #14.
Comment #16
mandclu CreditAttribution: mandclu as a volunteer and at Acquia commentedClosing this as a duplicate of #2981851: Floats not cleared, which has already been merged.