@lynx-js/web-elements-canary 0.8.9-canary-20251013-e42b906a → 0.8.9-canary-20251014-df5ebcf0

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,15 +1,17 @@
1
1
  # @lynx-js/web-elements
2
2
 
3
- ## 0.8.9-canary-20251013055913-e42b906ae0d771739e0e1897def646ad159274eb
3
+ ## 0.8.9-canary-20251014105759-df5ebcf0408950d0380b6d53ad0b9d43eacf36b6
4
4
 
5
5
  ### Patch Changes
6
6
 
7
+ - fix: layoutchange event result `detail.top` and `detail.left` was `0` incorrectly ([#1887](https://github.com/lynx-family/lynx-stack/pull/1887))
8
+
7
9
  - textarea placeholder inherits font-size by default ([#1874](https://github.com/lynx-family/lynx-stack/pull/1874))
8
10
 
9
11
  - feat: support <x-text text="content"></x-text> ([#1881](https://github.com/lynx-family/lynx-stack/pull/1881))
10
12
 
11
13
  - Updated dependencies []:
12
- - @lynx-js/web-elements-template@0.8.9-canary-20251013055913-e42b906ae0d771739e0e1897def646ad159274eb
14
+ - @lynx-js/web-elements-template@0.8.9-canary-20251014105759-df5ebcf0408950d0380b6d53ad0b9d43eacf36b6
13
15
 
14
16
  ## 0.8.8
15
17
 
@@ -29,9 +29,10 @@ let CommonEventsAndMethods = (() => {
29
29
  if (!this.#resizeObserver) {
30
30
  this.#resizeObserver = new ResizeObserver(([entry]) => {
31
31
  if (entry) {
32
- // The layoutchange event is the border box of the element
33
- const { width, height, left, right, top, bottom } = entry.contentRect;
34
32
  const id = this.#dom.id;
33
+ // Reuse getBoundingClientRect to get left and top, because ResizeObserver-contentRect is calculated based on padding box
34
+ const { top, bottom, left, right, width, height } = entry.target
35
+ .getBoundingClientRect();
35
36
  this.#dom.dispatchEvent(new CustomEvent('layoutchange', {
36
37
  detail: {
37
38
  width,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-elements-canary",
3
- "version": "0.8.9-canary-20251013-e42b906a",
3
+ "version": "0.8.9-canary-20251014-df5ebcf0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -101,7 +101,7 @@
101
101
  ],
102
102
  "dependencies": {
103
103
  "@lynx-js/web-elements-reactive": "npm:@lynx-js/web-elements-reactive-canary@0.2.2",
104
- "@lynx-js/web-elements-template": "npm:@lynx-js/web-elements-template-canary@0.8.9-canary-20251013-e42b906a"
104
+ "@lynx-js/web-elements-template": "npm:@lynx-js/web-elements-template-canary@0.8.9-canary-20251014-df5ebcf0"
105
105
  },
106
106
  "devDependencies": {
107
107
  "tslib": "^2.8.1"