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

"Copied!" tooltip misplaced when you scroll #36

Open
kosarko opened this issue Jun 7, 2017 · 0 comments
Open

"Copied!" tooltip misplaced when you scroll #36

kosarko opened this issue Jun 7, 2017 · 0 comments
Labels

Comments

@kosarko
Copy link
Member

kosarko commented Jun 7, 2017

so the position of the tooltip is set to fixed (because absolute was broken in repo, maybe should have fixed repo instead...), it's css top + left is set based on the .offset() of the button you press; I'm guessing the offset takes into the account the amount you've scrolled and then the fixed tooltip is rendered way below or even outside the current visible window; is there a property that'd give me position of an element in the current view/window? Or maybe I can base it on mouse position when user clicks (would that work on touchscreens?) or maybe I can subtract the amount scrolled...
(note that lindat-common is on purpose without bootstrap, so I can't use bootstrap's tooltips)...

@kosarko kosarko added the bug label Jun 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant