Jump to content

X missing when attacking too soon


biermann

Recommended Posts

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
Link to comment
Share on other sites

  • 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...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Forum Statistics

    17.5k
    Total Topics
    182.5k
    Total Posts
  • Recently Browsing

    • No registered users viewing this page.
  • Upcoming Events

    No upcoming events found
  • Recent Event Reviews

×
×
  • Create New...