d3-seating-chart icon indicating copy to clipboard operation
d3-seating-chart copied to clipboard

[BUG] Scaling by 0 on Firefox

Open mtferg opened this issue 6 years ago • 0 comments

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.

mtferg avatar Nov 07 '18 16:11 mtferg