@cocreate/position 1.3.6 → 1.3.8

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [1.3.8](https://github.com/CoCreate-app/CoCreate-position/compare/v1.3.7...v1.3.8) (2023-05-06)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * bump [@cocreate](https://github.com/cocreate) dependencies ([d6d7de8](https://github.com/CoCreate-app/CoCreate-position/commit/d6d7de8f3dff288692fbe1e9f3393c69fb11c813))
7
+
8
+ ## [1.3.7](https://github.com/CoCreate-app/CoCreate-position/compare/v1.3.6...v1.3.7) (2023-05-01)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * get rect when element is initializing ([0895567](https://github.com/CoCreate-app/CoCreate-position/commit/089556793c9126c205336d5efa2af97945ea1177))
14
+
1
15
  ## [1.3.6](https://github.com/CoCreate-app/CoCreate-position/compare/v1.3.5...v1.3.6) (2023-05-01)
2
16
 
3
17
 
@@ -17,9 +17,10 @@ module.exports = {
17
17
  "general.cocreate.app"
18
18
  ],
19
19
  "directory": "/docs/position",
20
- "content-type": "text/html",
20
+ "parentDirectory": "{{parentDirectory}}",
21
+ "content-type": "{{content-type}}",
21
22
  "public": "true",
22
- "website_id": "5ffbceb7f11d2d00103c4535"
23
+ "website_id": "644d4bff8036fb9d1d1fd69c"
23
24
  }
24
25
  }
25
26
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/position",
3
- "version": "1.3.6",
3
+ "version": "1.3.8",
4
4
  "description": "Make any element draggable and movable. Customizable via attributes, great for popups, alerts, multitasking and displaying multiple views.",
5
5
  "keywords": [
6
6
  "position",
@@ -59,7 +59,7 @@
59
59
  "webpack-log": "^3.0.1"
60
60
  },
61
61
  "dependencies": {
62
- "@cocreate/docs": "^1.7.1",
63
- "@cocreate/observer": "^1.7.1"
62
+ "@cocreate/docs": "^1.7.8",
63
+ "@cocreate/observer": "^1.7.6"
64
64
  }
65
65
  }
package/src/position.js CHANGED
@@ -52,6 +52,8 @@ position.prototype = {
52
52
  });
53
53
  }
54
54
 
55
+ this.__setRectInfo();
56
+
55
57
  let positionableEl = this.el
56
58
  if (this.dragHandle)
57
59
  positionableEl = this.dragHandle