Dialog appears off-screen on Safari
See original GitHub issueBugs
What MDC-Web Version are you using?
0.7.0
What browser(s) is this bug affecting?
Safari Version 10.0.3 (12602.4.8)
What OS are you using?
macOS 10.12.3 (16D32)
What are the steps to reproduce the bug?
- run the demo server
- go to localhost:8080/dialog.html
- Click
show dialog
button on the left
What is the expected behavior?
Dialog should appears in the center of the screen
What is the actual behavior?
Dialog left rim appears in the center of the screen and hope dialog is off screen
Any other information you believe would be useful?
It seems like mdc-dialog__surface
is using position: absolute;
to position itself correctly on vertical direction. However, this seems making Safari cannot correctly measure its metrics and think it occupy zero width within flexbox.
The fix could be changing the style to
position: relative;
bottom: 25%;
It should exactly move the dialog to the same position.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:5 (5 by maintainers)
Top Results From Across the Web
new dialog windows appear off screen
Hello, I am a graphic designer who uses 2 monitors at work. Almost always, if an application opens a dialog window, it appears...
Read more >macOS: Bring Off-Screen Window Back Onto Screen
Select the Apple Menu, then choose “System Preferences…” > “Displays“. Change “Rotation” to “90°“, then switch back to “Standard“. Fix 4 – Mirror...
Read more >Move an off-screen window back on-screen on Mac OS X
This method seems to work: click on the Window menu, then click Zoom.
Read more >How to retrieve windows that have moved 'off-screen'
One method is before you unplug the external monitor (or before you unplug the dongle) is to open up the Displays Preference Pane...
Read more >Project has no name dialogue appears off screen on iOS #1454
martinwork commented on Oct 17, 2018 · OS: iPad Air, iOS 11.4.1 · Browser Safari · Version makecode.microbit.org 1.1.74.
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 FreeTop 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
Top GitHub Comments
This appears to be an issue in Firefox as well.
@yeelan0319 I really think this can be closed, with #415 it works on safari and firefox as well.