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 appears off-screen on Safari

See original GitHub issue

Bugs

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?

  1. run the demo server
  2. go to localhost:8080/dialog.html
  3. 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:open
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
sgomescommented, Mar 21, 2017

This appears to be an issue in Firefox as well.

0reactions
robzenn92commented, May 18, 2017

@yeelan0319 I really think this can be closed, with #415 it works on safari and firefox as well.

Read more comments on GitHub >

github_iconTop 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 >

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