Commit acb3d81f authored by Dries's avatar Dries
Browse files

- Patch #619362 by casey: fixed broken URL fragments.

parent cbdb5fc9
......@@ -544,6 +544,11 @@ Drupal.overlay.bindChild = function (iframeWindow, isClosing) {
clearTimeout(self.resizeTimeoutID);
self.resizeTimeoutID = setTimeout(delayedResize, 150);
}
// Scroll to anchor in overlay. This needs to be done after delayedResize().
if (iframeWindow.document.location.hash) {
window.scrollTo(0, self.$iframeWindow(iframeWindow.document.location.hash).position().top);
}
};
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment