Commit 6f4de97c authored by Kushal Pandya's avatar Kushal Pandya

Merge branch '350967-group-roadmap-setting-panel-position-problem' into 'master'

Replace offsetTop with getBoundingClientRect for roadmap_setting panel

See merge request gitlab-org/gitlab!78992
parents 695feb14 f078cf8f
......@@ -16,7 +16,8 @@ export default {
const wrapperEl = document.querySelector('.roadmap-container');
if (wrapperEl) {
return `${wrapperEl.offsetTop}px`;
const topPosition = wrapperEl.getBoundingClientRect().top + window.pageYOffset;
return `${topPosition}px`;
}
return '';
......
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