Skip to content

fix incorrect line chart size in FireFox

Administrator requested to merge jdb/fix-line-chart-size-calculation into main

Created by: unclejustin

Swap getBoundingClientRect for getBBox. There are known differences in how FireFox calculated bounding rectangle width using getBoundingClientRect. Switching to getBBox offers similiar enough functionality for our use case as well as consistent results across browsers.

Test plan

Open any dashboard with insights Resize the screen Charts should resize proportionally across all browsers.

Closes https://github.com/sourcegraph/sourcegraph/issues/34668

App preview:

Check out the client app preview documentation to learn more.

Merge request reports

Loading