@social-mail/social-mail-client 1.8.294 → 1.8.295

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.294",
3
+ "version": "1.8.295",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -251,10 +251,12 @@ export class SelectedElement {
251
251
  }
252
252
  const r = e.getBoundingClientRect();
253
253
  const minusWidth = Math.min(0, r.left);
254
- this.top = `${r.top + 20}px`;
254
+ const top = Math.max(0, r.top);
255
+ const minusHeight = r.top > 0 ? 0 : r.top;
256
+ this.top = `${top + 20}px`;
255
257
  this.left = `${Math.max(0, r.left) + 20}px`;
256
258
  this.width = `${r.width + minusWidth}px`;
257
- this.height = `${r.height}px`;
259
+ this.height = `${r.height + minusHeight}px`;
258
260
 
259
261
  switch (this.dropAnchor) {
260
262
  case "top":