Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFerdinand Thiessen <rpm@fthiessen.de>2022-09-05 15:59:37 +0300
committermax-nextcloud (Rebase PR Action) <max-nextcloud@users.noreply.github.com>2022-09-06 09:39:14 +0300
commitdb13ec0f46e2f0e0f25429f6294965a4f9241077 (patch)
tree16064d399846d6f03161521924456eb8689a05e6 /src
parent9d69081225c0103d3c68c85d8e000dec2a483748 (diff)
Fix headlines being hidden behind toolbar (anchor links)
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
Diffstat (limited to 'src')
-rw-r--r--src/helpers/links.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/helpers/links.js b/src/helpers/links.js
index b4223f9c5..d7446373e 100644
--- a/src/helpers/links.js
+++ b/src/helpers/links.js
@@ -112,6 +112,7 @@ const openLink = function(event, _attrs) {
const el = document.getElementById(fragment)
if (el) {
el.scrollIntoView()
+ window.location.hash = fragment
return
}
}