d3-seating-chart
d3-seating-chart copied to clipboard
[BUG] Scaling by 0 on Firefox
As described here: https://bugzilla.mozilla.org/show_bug.cgi?id=874811, Firefox will always return 0
for clientWidth
and clientHeight
. This results in the zoom
function scaling by 0, essentially hiding the SVG.
A solution would be to fallback on getBoundingClientRect()
, which is supported by Firefox.