Aakansha Doshi пре 2 година
родитељ
комит
1dbc599b88
1 измењених фајлова са 1 додато и 1 уклоњено
  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;
 };