-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Tooltips vibrate when zoomed/scaled #4322
Comments
I think I've found the problem. Browsers round up or down the A solution which seems to solve it is to replace occurrences of |
PR sent for review, thanks! |
Hi @valorkin, just wondering when this PR can be merged and/or released? Thanks |
@valorkin please can we have an update on this? I don't mean to be pushy but this bug is holding my team up and I don't want to switch to my fork of ngx-bootstrap but I will have to if this isn't patched soon. |
merged, it looks good, but eventually getRect could be used to work with not rounded values |
Possibly related to #3047
With browser zoom at 125% or 175% or Windows scale at 125% (which is often the default on laptops), seemingly at random some of our tooltips will vibrate instead of being still in one position.
The inline style of the tooltip is changing by 1px either to the left or top properties and very occasionally both together (diagonal vibrate).
I have dug into the code a little and can see that positionElements is being executed repeatedly many times and the calculation for targetElPosition changes which is causing the vibration effect.
Unfortunately I was not able to reproduce it on Plunkr.
Any help/tips appreciated.
ngx-bootstrap: 2.0.4
Angular: 5.2.9
Bootstrap: 3.3.7
Built with
ng build
. It's a hybrid AngularJS + Angular5 application and also uses ngx-perfect-scrollbar (in case that has anything to do with it).The text was updated successfully, but these errors were encountered: