@social-mail/social-mail-client 1.8.314 → 1.8.315

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": "@social-mail/social-mail-client",
3
- "version": "1.8.314",
3
+ "version": "1.8.315",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -67,7 +67,7 @@ const setCapture = (editor: HtmlPageEditor, element: HTMLElement, e: PointerEven
67
67
  const r = fx(ri);
68
68
  const av = `${ps(r.top, height)}% ${ps(r.right, width)}% ${ps(r.bottom, height)}% ${ps(r.left, width)}%`;
69
69
  selectedElement.setAttribute(`${prefix}-inset`, av);
70
- if (/^img$/i.test(selectedElement.tagName)) {
70
+ // if (/^img$/i.test(selectedElement.tagName)) {
71
71
  // image needs width/height as well...
72
72
  let widthDiff = -r.left;
73
73
  let heightDiff = -r.top;
@@ -79,7 +79,7 @@ const setCapture = (editor: HtmlPageEditor, element: HTMLElement, e: PointerEven
79
79
  }
80
80
  selectedElement.setAttribute(`${prefix}-width`, ps(width + widthDiff, width) + "%");
81
81
  selectedElement.setAttribute(`${prefix}-height`, ps(height + heightDiff, height) + "%");
82
- }
82
+ // }
83
83
 
84
84
  setTimeout(() => {
85
85
  selection.updateRect();