-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backdrop covers only the viewport and can be scrolled away #43
Comments
Thanks for the report. Please let me double check this - I saw this bug previously, but it was caused by the underlying page having a broken/missing tag. You're right that the backdrop should cover the entire page. Whilst I take a look, please can you revalidate your HTML on your live page and just make sure it's not a broken tag? I know that docs.html has this issue, e.g.: line 556 is missing the closing > on the span (I just ran it through W3 HTML validator). That's because I had to manually grab and hack the Tour docs page. |
I tried a shortened docs.html with no HTML validation errors and got the same result. I suppose it is simply a wrong CSS declaration. When I use |
Great, thank you for the fix. I'll try and get that added before Christmas but, well, it's Christmas! |
@IGreatlyDislikeJavascript and @diesl, The option I tried to adjust the .tour-backdrop {
height: 9999px;
} That results in the follow while still covering the full page: --- EDIT |
That second screenshot is odd, looks like the backdrop div has jumped above the popover zindex which shouldn't be possible if the only change you made was the height. I'll continue looking at this. |
|
Is there any progress on this? |
Hi @diesl , yes unfortunately my progress has been basically halted by the corona virus for various reasons. Offices mostly remain closed here (many businesses are continuing this into September/October), and I have no access to my development environment. It's also created some personal challenges, so I haven't been able to do anything about an alternative solution. If there's an urgent fix that I can do with simple notepad / vim editing, I can do that. But investigating bugs and new functionality is more difficult. No promises, I will try and do what I can, but appreciate your patience. |
Regards to all. I managed to solve this problem in the following way ... In if ($(DOMID_BACKDROP).length === 0)
{
$(this._options.backdropContainer).append($backdrop);
$('body').css('position','relative'); //add this for backdrop cover the whole page
}
if ($(DOMID_HIGHLIGHT).length === 0)
{
$(this._options.backdropContainer).append($highlight);
} I hope that this solution will not disrupt the normal operation of the rest of the code. I ask the more competent members to give their comment, so that I and the others can learn |
@igor-stojcic I can't test this out currently, but although that looks like it could work, I'm not sure of the implications of changing CSS position for the entire DOM @diesl has posted a fix earlier in this thread, does that work for you? I want to figure out if diesl's fix is correct and sdlins has a specific local issue, or if diesl's fix doesn't work fully and sdlins is an example of that. |
However, a better solution was given by @diesl with the position: fixed. |
Hopefully I can also take a second look at this issue and the proposed solutions next week |
The title already says it, the backdrop covers only the viewport and can be scrolled away if the page has more content outside the viewport.
I my opinion, the backdrop should cover the whole page instead of only the viewport.
Example: docs.html
The text was updated successfully, but these errors were encountered: