But when we determine the width of the megamenu based on the parent container (CSS selector), the container is not placed exactly in the center.
Please see the image below. If you look at the right side of the Mega Manu, it’s skewed to the left by about 3 pixels.
I apologize. I forgot to adjust the mega menu on the test website according to this bug. It is now ready for your review.
Before your review, let me add one thing. Even if the megamenu is full width (the default), the megamenu is still slightly skewed to the left. This problem will become apparent when the background color of the content is dark.
Hi Hosein,
Yes and no. The problem arises due to rounding problems based on the dropdown item position.
Unfortunately, we can’t do anything about it that works in every case.
You can add an outline to your mega menu content as a workaround. That should fix the problem in your scenario.