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

Using fit-to-visible-bounds causing flickering issue #138

Open
1 of 8 tasks
ssamajdar opened this issue Jul 19, 2018 · 0 comments
Open
1 of 8 tasks

Using fit-to-visible-bounds causing flickering issue #138

ssamajdar opened this issue Jul 19, 2018 · 0 comments

Comments

@ssamajdar
Copy link

ssamajdar commented Jul 19, 2018

Description

Tooltip is not properly rendered and adding flickering if using fit-to-visible-bounds in paper-tooltip.

Suppose tooltip position is top but the page is scrolled enough so the element's top space is not available, so fit-to-visible-bounds should place tooltip to the available space (that could be bottom, right, left or an optimum available space), but its trying to position tooltip on same top space only and causing flickering issue.

Live Demo

Issue

Steps to reproduce

  1. Put a paper-tooltip for an element
  2. Set fit-to-visible-bounds and position="top" attributes
  3. Run the page and scroll, so that no top space available to show tooltip
  4. Tooltip will try to update position continuously, flickring issue can be observed then
<div id="container">
      <span id="testDiv">test</span>
      <paper-tooltip fit-to-visible-bounds for="testDiv" position="top">Test Tooltip</paper-tooltip>
 </div>

Browsers Affected

  • Chrome
  • Firefox
  • Safari 9
  • Safari 8
  • Safari 7
  • Edge
  • IE 11
  • IE 10
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

1 participant