Title: [BUG] Top header enabled responsive issue
Last modified: August 18, 2020

---

# [BUG] Top header enabled responsive issue

 *  [raflesia](https://wordpress.org/support/users/raflesia/)
 * (@raflesia)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/bug-top-header-enabled-responsive-issue/)
 * I had the issue that with the top header enabled that on mobile devices the navigation
   would get a `top: 46px;` which shouldn’t happen because the top header is hidden
   on mobile devices. This makes the navigation on mobile devices very awkward.
 * The bug is in flash.js where on line 117 it checks if there is a `length` for
   the `wpAdminBar` where it should check on `height` as the length is in fact existing
   but the height isn’t. Could this be officially patched?
 * If you have issues with this and want the fix now then on line 117 of flash.js
   change `wpAdminBar.length` to `wpAdminBar.height` then copy the entire script
   and go to [https://javascript-minifier.com/](https://javascript-minifier.com/)
   to minify this. Then put the minified version at flash.min.js to have this fixed.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Rohit](https://wordpress.org/support/users/rohitkc32/)
 * (@rohitkc32)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/bug-top-header-enabled-responsive-issue/#post-13282387)
 * Hey [@raflesia](https://wordpress.org/support/users/raflesia/)
 * Could you please share with us the link to your site.
 *  Thread Starter [raflesia](https://wordpress.org/support/users/raflesia/)
 * (@raflesia)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/bug-top-header-enabled-responsive-issue/#post-13282522)
 * I just noticed my solution doesn’t really does it’s job, just figured out this
   bug happens if you are logged in on wordpress. It calculates the height of the
   admin bar of WP and tops that with the navigation, but the navigation is sticky
   and wordpress admin’s bar is not so you will always see that empty space on the
   top as soon as you scroll.
 * I can give you the url but you won’t see much, login on your own flash demo and
   you’ll be able to see it on the mobile version as soon as you scroll down.
 * [https://new.dioxy.nl](https://new.dioxy.nl)
 *  [Premi – ThemeGrill Support](https://wordpress.org/support/users/premi0/)
 * (@premi0)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/bug-top-header-enabled-responsive-issue/#post-13284953)
 * Hi [@raflesia](https://wordpress.org/support/users/raflesia/),
    Can you please
   share the screenshot of the issue that you have mentioned? It would be helpful
   for us to replicate the issue. Thanks.
 *  Thread Starter [raflesia](https://wordpress.org/support/users/raflesia/)
 * (@raflesia)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/bug-top-header-enabled-responsive-issue/#post-13287381)
 * When I not scroll as logged in user:
    [https://i.gyazo.com/0370c2ca4734efef07648c454e9f149f.png](https://i.gyazo.com/0370c2ca4734efef07648c454e9f149f.png)
 * When I scroll as logged in user:
    [https://i.gyazo.com/cf7b68a00ddf4c7150e329e0577a150b.png](https://i.gyazo.com/cf7b68a00ddf4c7150e329e0577a150b.png)
 * As you see, the navigation gets a `top style` added of the height of the admin
   bar. But the admin bar is not present when you scroll, so you get an empty space.
 *  Thread Starter [raflesia](https://wordpress.org/support/users/raflesia/)
 * (@raflesia)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/bug-top-header-enabled-responsive-issue/#post-13349261)
 * Any news?
 *  [Premi – ThemeGrill Support](https://wordpress.org/support/users/premi0/)
 * (@premi0)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/bug-top-header-enabled-responsive-issue/#post-13353716)
 * Hi [@raflesia](https://wordpress.org/support/users/raflesia/),
    We will check
   this issue and fix it in our next update. We will let you know after it gets 
   fix. Thank you for your patience.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘[BUG] Top header enabled responsive issue’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/flash/1.4.12/screenshot.jpg)
 * Flash
 * [Support Threads](https://wordpress.org/support/theme/flash/)
 * [Active Topics](https://wordpress.org/support/theme/flash/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/flash/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/flash/reviews/)

## Tags

 * [top header](https://wordpress.org/support/topic-tag/top-header/)

 * 6 replies
 * 3 participants
 * Last reply from: [Premi – ThemeGrill Support](https://wordpress.org/support/users/premi0/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/bug-top-header-enabled-responsive-issue/#post-13353716)
 * Status: not resolved