11

I use a HTML5 fullscreen plugin (https://github.com/kayahr/jquery-fullscreen-plugin) to view a website on request in fullscreen.

This works great - however, when I exit the fullscreen via plugin, I only see the very top bar, but not the address bar.

If I rotate the device into landscape and back into portrait mode, the address bar shows up, but I cannot expect users to know (and do) that.

How can I tell Chrome on Android to show up the address bar after programatically exiting fullscreen?


Initial state enter image description here

Address bar missing after exiting fullscreen enter image description here

Simon Ferndriger
  • 4,455
  • 6
  • 28
  • 53

1 Answers1

1

To force the address bar to show again try window.scrollTo(0, 0); to force the browser to scroll which reveals the address bar. This is a kind of hacky solution.

Raymond
  • 396
  • 4
  • 21
  • It will most probably work - however, I cannot test it since I am no longer working on this project. Would it make sense to select your response as answer nevertheless? – Simon Ferndriger Apr 02 '19 at 19:09