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

Any examples that work using parentLocations? #115

Open
gregveres opened this issue Jun 11, 2016 · 2 comments
Open

Any examples that work using parentLocations? #115

gregveres opened this issue Jun 11, 2016 · 2 comments

Comments

@gregveres
Copy link

I want to use the block style but I want the message to appear directly under the bootstrap nav bar.

I have added a div to the bottom of the nav bar like this:
<div id="MessageDiv"></div>

Then when I create the Messenger I use code like this:

    Messenger.options = {
       // extraClasses: "messenger-fixed messenger-on-top",
        theme: "block",
        parentLocations: [".MessageDiv", ".body", ".page"]
    };

should that work? It doesn't or I wouldn't be here. :) And since none of the ParentLocations demos actually bring up a message, I can't tell how they are supposed to work.

Thanks
Greg

@AvremelM
Copy link

AvremelM commented Aug 3, 2016

Not sure if this is still an issue for you, but your div has an id of "MessageDiv", but your parentLocations selector is a class: ".MessageDiv" instead of "#MessageDiv".

@gregveres
Copy link
Author

Ah good catch. I suspect that was it. I will go back and give that a try. I think I hard coded the amount of space to leave, a dynamic approach is much better.

thanks for pointing that out.

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

No branches or pull requests

2 participants