Dialog not opening in desktop fullscreen mode
See original GitHub issueProblem 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:
- Created 6 years ago
- Comments:8 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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:
to:
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 😉
@nicgirault Hi 👋