Aakansha Doshi 2 ani în urmă
părinte
comite
1dbc599b88
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      src/element/textElement.ts

+ 1 - 1
src/element/textElement.ts

@@ -322,7 +322,7 @@ export const measureBaseline = (
   span.style.height = "1px";
   container.appendChild(span);
   const baseline = span.offsetTop + span.offsetHeight;
-  //document.body.removeChild(container);
+  document.body.removeChild(container);
   return baseline;
 };