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.
Trying to find out if anyone else has this issue and how to solve it.
In Chrome, its ok unless you go very small. Do not know what happens in IE yet.
Screenshots attached
Comment | File | Size | Author |
---|---|---|---|
#1 | 1204098-fix-zooming-behavior.patch | 575 bytes | brianV |
zoomout.png | 9.55 KB | jenpasch | |
zoomin.png | 10.49 KB | jenpasch | |
normal.png | 7.85 KB | jenpasch |
Comments
Comment #1
brianV CreditAttribution: brianV commentedThe attached patch fixes this behavior.
It appears that some kind of rounding error is introduced as the browser is zoomed / unzoomed, which means that the width calculations done in the megamenu_sizer() function are off by a couple of pixels. This in turn makes the container slightly too narrow which forces the rightmost slot to drop beneath the others.
The attached patch adds one pixel per column in the width calculation to work around this rounding error.
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commented