Closed panthony closed 5 years ago
Before I made the change in #2672 I was not aware that Firefox threw an exception if the DOM element is not rendered (ex: display: none;).
This PR wraps every calls made to getBBox and returns an empty box instead.
getBBox
The method getBoundingClientRect was returning an object with all properties set to 0.
getBoundingClientRect
Can't really add a test for this since this is FF specific and we only have a chrome runner
Closes #2692
Before I made the change in #2672 I was not aware that Firefox threw an exception if the DOM element is not rendered (ex: display: none;).
This PR wraps every calls made to
getBBox
and returns an empty box instead.The method
getBoundingClientRect
was returning an object with all properties set to 0.Can't really add a test for this since this is FF specific and we only have a chrome runner
Closes #2692