Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kducharm created an issue. See original summary.

kducharm’s picture

Patch to improve CSS using inline-blocks, at a later time the whole CSS should be redone

kducharm’s picture

Status: Active » Needs review
joshua.roberson’s picture

I 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.

joshua.roberson’s picture

The patch fixes the float problem, but the multiselect layout is messed up now where the selected list is under the unselected list.

joshua.roberson’s picture

Status: Needs review » Needs work
joshua.roberson’s picture

Status: Needs work » Needs review
FileSize
563 bytes

Hidding 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.

dani3lr0se’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
104.26 KB

This 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. :)

nerdstein’s picture

Status: Reviewed & tested by the community » Needs review

Currently the patch does not apply. I recently merged another issue that touched the CSS file. Re-roll needed

dani3lr0se’s picture

Patch was rerolled. Here is an updated version since code has been merged into the project.

volkswagenchick’s picture

Assigned: kducharm » Unassigned
Status: Needs review » Reviewed & tested by the community
FileSize
78.6 KB

Patch applied clean via simplytest.me. That patch appears to address the float issue. Screenshot attached. Marking RTBC

lamp5’s picture

To fix it we do not need any extra tags in the code.

yaach’s picture

Patch #12 fixed it for me.

joshua.roberson’s picture

Using 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:

.multiselect-wrapper:after {
+  content: "";
+  display: table;
     clear: both;
}

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

aleksip’s picture

Can confirm #14.

mandclu’s picture

Status: Reviewed & tested by the community » Closed (duplicate)
Related issues: +#2981851: Floats not cleared

Closing this as a duplicate of #2981851: Floats not cleared, which has already been merged.