We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed87e6d commit 2591c36Copy full SHA for 2591c36
src/layer/font_metrics.js
@@ -145,7 +145,7 @@ class FontMetrics {
145
146
$getZoom(element) {
147
if (!element || !element.parentElement) return 1;
148
- return (window.getComputedStyle(element)["zoom"] || 1) * this.$getZoom(element.parentElement);
+ return (Number(window.getComputedStyle(element)["zoom"]) || 1) * this.$getZoom(element.parentElement);
149
}
150
151
$initTransformMeasureNodes() {
0 commit comments