question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dialog not opening in desktop fullscreen mode

See original GitHub issue

Problem description

When the app is in fullscreen mode, the dialog does not open. I have to resize the window so that the dialog appear.

Steps to reproduce

  • in componentDidMount of the App component:
const root = document.getElementById('root')
root.onclick= () => root.webkitRequestFullscreen()

In a child component, display a dialog after being fullscreen.

I observe this behavior only when using webkitRequestFullscreen(). Using F11 works well

Versions

  • Material-UI: 0.19.0
  • React: 15.6.1
  • Browser: Chrome 57

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
nicgiraultcommented, Sep 3, 2017

It was actually not a bug from material-ui. I was requesting full screen on my app root component (a div in the body of the HTML document) but the dialog appears outside of the root (directly in the body of the document). This is why it was not visible.

I changed my code from:

const root = document.getElementById('root')
root.onclick= () => root.webkitRequestFullscreen()

to:

const root = document.getElementById('root')
root.onclick= () => document.body.webkitRequestFullscreen()

The questions that guided my to the answer: https://stackoverflow.com/questions/44071348/make-a-react-element-appear-on-the-front-of-fullscreen-ed-child-react-component.

At least it made me upgrading to material-ui v1 😉

1reaction
oliviertassinaricommented, Sep 1, 2017

@nicgirault Hi 👋

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dialog not opening in desktop fullscreen mode #8005 - GitHub
Problem description When the app is in fullscreen mode, the dialog does not open. I have to resize the window so that the...
Read more >
Open File Dialog Box will only open in full screen mode
When opening a vi from the "File" pull down menu in LabVIEW. The open file dialog box opens in full screen mode only....
Read more >
Dialog not visible when div is full screen (requestFullscreen)
Hi, I'm building a website where a part can be shown full screen. Unfortunately when the div is shown in full screen mode,...
Read more >
9691 (Dialog: Not showing in chrome/firefox fullscreen mode)
In which case the dialog, although still seen in the developer tools as being present, disappears from view. On exiting full screen mode...
Read more >
Trouble with Windows dialogs in a fullscreen SDL app
I'm trying to prompt the user for a file, using GetOpenFileName, and I've run into a number of problems when my app is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found