Navigation Modal a Weird Size Upon First Viewing

Here is an odd one I couldn’t find another report of in the forum.

I have a navigation modal being used on a page (not in the header builder). When first opened it is often sized 100px taller than it needs to be (302px tall instead of 202px). So it looks like this:

Once the browser window is resized the modal resizes to 202px and can’t be forced to appear 302px again. So it looks like this:

This only happens the first time someone visits the page and opens the modal. If they do not clear their cache it won’t happen again. So opening the page in an incognito/private browser window often causes it to occur once. I’ve recreated the issue in Safari, Chrome, and Firefox. Here is a quick video showing it happen in all three browsers in case you have difficulty recreating it.

I did notice that in Chrome it seems a bit inconsistent. In Safari and Firefox it is happening 100% of the time for me if a new incognito window is opened. In Chrome it is sometimes fine and sometimes not. One thing I noticed too is that if I navigate to the page and resize the browser window before opening the modal the issue never occurs. In this video I show the inconsistency in Chrome.

Finally, here is a brief video showing I don’t have any CSS or JS in the element or page settings.

This issue occurs on all three pages this element is located (each page has some color changes to the modal element but it’s otherwise identical):

Edit: I should mention this issue also occurs on my iphone Xs Max:

Hi @MediaDeskNM,

I can see the issue on your site, although I can’t duplicate it on my site install using the same latest version of the theme. There might be some conflict somewhere although I can’t find the root cause yet when I check the source code. As an alternative solution at the moment, can you go to Customize tab of the element > Element CSS: Then try adding the following:

$el.x-menu{ height:auto !important;}

Hi @Lely,

That solution worked great, thanks!

I too have tried to recreate the issue in some other sites but haven’t been successful. I even exported the template for the element and imported it into other sites but couldn’t recreate the issue.

One thought - I haven’t bothered setting up the custom font I’m using in other sites when attempting to recreate the issue. Perhaps the font is somehow causing the element to behave oddly?

Regardless, this seems to be an isolated issue so the solution you’ve provided more than suffices for my needs. Thanks!

You’re welcome!
We’re glad @Lely were able to help you out.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.