I am Bored Posted March 30, 2015 Report Posted March 30, 2015 (edited) 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 March 30, 2015 by I am Bored Quote
Root Admin Chewett Posted April 10, 2015 Root Admin Report Posted April 10, 2015 Actually surely the "main" fix is to remove the # from every single link? thats not too bad. Quote
I am Bored Posted April 10, 2015 Report Posted April 10, 2015 Assuming <a href=""></a> is a link to the current document, then yes, that *should* work as well. Quote
Root Admin Chewett Posted April 10, 2015 Root Admin Report Posted April 10, 2015 Removing the href entirely, and just adding the right text decoration would be fine still. No? Quote
Root Admin Chewett Posted April 11, 2015 Root Admin Report Posted April 11, 2015 THIS HAS BEEN FIXED. Jubaris and Sunfire 2 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.