Skip to content
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

Problem with fixed selectors #123

Closed
alvarotrigo opened this issue May 9, 2013 · 6 comments
Closed

Problem with fixed selectors #123

alvarotrigo opened this issue May 9, 2013 · 6 comments

Comments

@alvarotrigo
Copy link

If I have a very large page (which enables me to scroll) and i have a fixed element at the bottom of the page, with something like:

position:fixed;
bottom:0px;
width:100%;
height:40px;

If i want to use the plugin with any element inside that fixed element, it will fail.
The plugin tries to scroll down to find it and ends up pointing to the wrong place.

@marcobarbosa
Copy link

I have the same problem.

Could we check somewhere here:
var currentTooltipPosition = this._introItems[this._currentStep].position;

That the element has "fixed" position and apply position "fixed" instead of "absolute" ?

@usablica Is this the way to go? I'm willing to patch it and issue a pull request if that is the case. What do you think?

@afshinm ping!

@mamezito-zz
Copy link

same problem here
plz check quick example - http://jsfiddle.net/mamezito/gcKXf/
first tooltip overlays the button , #240 this solution breaks the thing, cause scrolling leads to moving the element, which must be sticked in some place

also try second tooltip - the position of highlight area is wrong, and its moving when scrolling, while the element sticks in its place

@netcult
Copy link

netcult commented Aug 26, 2014

Same problem here! I have a fixed header..

@raduluchian
Copy link

I also have a fixed navbar and have no such problem, on the other hand I have this problem with a fixed button:

.btn {
    position: fixed:
    bottom: 0;
    right: 0;
}

The problem is that the referenceLayer is always offset by minus some pixels to the top.

@bozdoz bozdoz changed the title Problem width fixed selectors Problem with fixed selectors Sep 4, 2017
@afarineshfar
Copy link

afarineshfar commented Jan 18, 2018

I have the same problem. I have to change position temporary to absolute and after onexit event, change it again. Maybe sometime this method help you, especially when element fixed to top of page.

function showIntro(){
    $("footer.fixed-footer-box").css("position", "absolute");
    
    var intro = introJs().setOptions({
        'nextLabel': 'Next Step',
        'prevLabel': 'Prev Step', 
        'skipLabel': 'Exit', 
        'doneLabel': 'Finish' 
    }).start();
    
    intro.onexit( function(){
        $("footer.fixed-footer-box").css("position", "fixed");
    });
}

@bozdoz
Copy link
Collaborator

bozdoz commented Feb 27, 2018

duplicate of #109

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants