mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-72783 usertours: Fix the tour display for pages with drawers
This commit is contained in:
parent
4f9a539600
commit
524f75797a
2
admin/tool/usertours/amd/build/tour.min.js
vendored
2
admin/tool/usertours/amd/build/tour.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1435,10 +1435,14 @@ const Tour = class {
|
||||
|
||||
let drawertop = 0;
|
||||
if (targetNode.parents('[data-usertour="scroller"]').length) {
|
||||
drawertop = targetNode.parents('[data-usertour="scroller"]').scrollTop();
|
||||
background.css({
|
||||
position: 'fixed'
|
||||
});
|
||||
const scrollerElement = targetNode.parents('[data-usertour="scroller"]');
|
||||
const navigationBuffer = scrollerElement.offset().top;
|
||||
if (scrollerElement.scrollTop() >= navigationBuffer) {
|
||||
drawertop = scrollerElement.scrollTop() - navigationBuffer;
|
||||
background.css({
|
||||
position: 'fixed'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
background.css({
|
||||
|
Loading…
x
Reference in New Issue
Block a user