Skip to content
View in the app

A better way to browse. Learn more.

MagicDuel Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

X missing when attacking too soon

Featured Replies

After a bit of digging, I've been able to come up with a fix. Changing "js/dlg/subModal.js" line 206 from:

doc.getElementById("popupMainPage").style["position"] = "relative";

to:

doc.getElementById("popupMainPage").style["position"] = "absolute";

Solves the problem and is still correct, because the popupMainPage div is at the root of the document, and absolute positions are calculated relative to the iframe, rather than the document.

 

I have not yet been able to figure out why it keep scrolling to the middle of nowhere when I click things though.

 

Edit:

It appears that the scrolling is due to Chrome behaving absolutely absurdly with go-nowhere links (<a href="#">), as it auto-scrolls to the link when clicked. I'm currently trying to figure out a non-absurd way of solving this. (the bug has existed for at least 4 years) The initial report is issue 92301, which is closed as obsolete, and the newest one is issue 364999 which is still open.

 

The absurd answer to fixing the second issue is to find every go-nowhere link in MD, and add "e.preventDefault(); return false;" to the end of it's on-click handler.

Edited by I am Bored

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Forum Statistics

  • Total Topics 17.5k
  • Total Posts 182.2k

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.