Skip to content
Snippets Groups Projects
Commit acb3d81f authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent cbdb5fc9
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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);
}
};
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment