diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-10-10 17:08:47 +0200 |
---|---|---|
committer | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-10-11 12:02:21 +0200 |
commit | 57606ff108c1c541f3e152a31bbbfdc0261b2dc6 (patch) | |
tree | 148147d9eedbf34d43d69357d313776519861553 /server/sonar-web/src/main/js/helpers/scrolling.ts | |
parent | 2076e3bd0143ffc4f88c180ce3fa3b9ac41b3f85 (diff) | |
download | sonarqube-57606ff108c1c541f3e152a31bbbfdc0261b2dc6.tar.gz sonarqube-57606ff108c1c541f3e152a31bbbfdc0261b2dc6.zip |
SONAR-9555 Page is not scrolled to selected issue when using IE11
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/scrolling.ts')
-rw-r--r-- | server/sonar-web/src/main/js/helpers/scrolling.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/helpers/scrolling.ts b/server/sonar-web/src/main/js/helpers/scrolling.ts index a36c6ef0789..701665223b4 100644 --- a/server/sonar-web/src/main/js/helpers/scrolling.ts +++ b/server/sonar-web/src/main/js/helpers/scrolling.ts @@ -28,7 +28,7 @@ function isWindow(element: HTMLElement | Window): element is Window { } function getScrollPosition(element: HTMLElement | Window): number { - return isWindow(element) ? window.scrollY : element.scrollTop; + return isWindow(element) ? window.pageYOffset : element.scrollTop; } function scrollElement(element: HTMLElement | Window, position: number): void { |