You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is bizarre, because I worked a lot on that, and haven't touched the code, but it now appears that altering the page zoom factor in-app is not adjusting the vertical positioning of popovers, leading them to be positioned over (and hide) the link the user may wish to click.
Grrr...
The text was updated successfully, but these errors were encountered:
OK, I've discovered the reason for this. It's because Firefox have just introduced support for the zoom CSS property (since 126 - see https://caniuse.com/css-zoom), which caused the feature detection to go wonky.
The problem is more widespread, and is due to the fact that the interaction between the zoom property and getBoundingClientRect has changed in recent browsers due to standardization.
We need to use a different value, such as offsetTop to get the unadjusted values, because we're now in a situation where we can't detect whether getBoundingCleintRect() is giving us values divided by the zoom factor or not, depending on the date of the exact same browser!
We can probably detect the new API by adapting this code (basically comparing offsetTop and getBoundingClientRect().top:
// Set isNewRectAPI based on a specific value, not according to multiple browser versions.
var originTop = $("#some element whose position is held").prop("offsetTop");
var boundingClientRectTop = document.getElementById("#some element whose position is held").getBoundingClientRect().top;
isNewRectAPI = Math.abs(originTop - boundingClientRectTop) > Math.abs(originTop*document.body.style.zoom - boundingClientRectTop)
This is bizarre, because I worked a lot on that, and haven't touched the code, but it now appears that altering the page zoom factor in-app is not adjusting the vertical positioning of popovers, leading them to be positioned over (and hide) the link the user may wish to click.
Grrr...
The text was updated successfully, but these errors were encountered: