overtype 2.3.1 → 2.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "overtype",
3
- "version": "2.3.1",
3
+ "version": "2.3.2",
4
4
  "description": "A lightweight markdown editor library with perfect WYSIWYG alignment using an invisible textarea overlay",
5
5
  "main": "dist/overtype.cjs",
6
6
  "module": "dist/overtype.esm.js",
package/src/overtype.js CHANGED
@@ -1334,9 +1334,11 @@ class OverType {
1334
1334
  // Store scroll positions
1335
1335
  const scrollTop = textarea.scrollTop;
1336
1336
 
1337
- // Reset height to get accurate scrollHeight
1337
+ // Reset heights to get accurate scrollHeight
1338
+ // Wrapper must also reset so the absolute-positioned textarea isn't constrained
1339
+ wrapper.style.setProperty('height', 'auto', 'important');
1338
1340
  textarea.style.setProperty('height', 'auto', 'important');
1339
-
1341
+
1340
1342
  // Calculate new height based on scrollHeight
1341
1343
  let newHeight = textarea.scrollHeight;
1342
1344