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

Position of pointer #11

Open
FlashNet opened this issue May 23, 2017 · 2 comments
Open

Position of pointer #11

FlashNet opened this issue May 23, 2017 · 2 comments

Comments

@FlashNet
Copy link

FlashNet commented May 23, 2017

Hello,

Could you please clarify if it is possible to change the position of pointer?
For example I want to observe pointer at 30% from the left border of popup.

Thanks.

@adamkrogh
Copy link
Member

Hi,

Currently this can only be done through CSS, we don't have a JavaScript property for offsetting the pointer at the moment.

We've created a Codepen example that shows how to offset the pointer with CSS. Is that close to what you are trying to achieve?

Maybe in the future we can add a dedicated JavaScript property for this instead of a CSS workaround.

Hopefully that helps you out. Let us know what you think.

Thanks!

@FlashNet
Copy link
Author

Thanks for answer, interesting example. The first time I see "align-self" CSS rule... need to improve my knowledge :)
Actually we decided to not change pointer position for now.

As for example you created.
The problem is that it has fixed popup width 300px. And fixed offset position. But I wanted to have min- and max- width.
Of course I see that maybe it is too tricky and not really important for now :)

Thanks.

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

2 participants