diff --git a/.changeset/thick-news-refuse.md b/.changeset/thick-news-refuse.md deleted file mode 100644 index fe7a195c..00000000 --- a/.changeset/thick-news-refuse.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@inventage-web-components/portal-navigation': patch ---- - -Instead of relying on two nested `requestAnimationFrame` callbacks to detect when style and layout information have been applied (for computing the `anchor` padding in `sticky` mode), we instead now use `requestAnimationFrame` in combination with `setTimeout`. - -This should hopefully give us a more reliable hook into the point in time where the style and layout information have been calculated and the paint has occurred. diff --git a/package-lock.json b/package-lock.json index 5679660d..c4cf1036 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20592,7 +20592,7 @@ }, "packages/portal-navigation": { "name": "@inventage-web-components/portal-navigation", - "version": "1.6.2", + "version": "1.6.3", "license": "MIT", "dependencies": { "@inventage-web-components/common": "^2.1.0", diff --git a/packages/portal-navigation/CHANGELOG.md b/packages/portal-navigation/CHANGELOG.md index a14b84f8..da7165f1 100644 --- a/packages/portal-navigation/CHANGELOG.md +++ b/packages/portal-navigation/CHANGELOG.md @@ -1,5 +1,13 @@ # @inventage-web-components/portal-navigation +## 1.6.3 + +### Patch Changes + +- [`fca9078b925c7ca971f892b30812fbc1e32981ea`](https://github.com/inventage/web-components/commit/fca9078b925c7ca971f892b30812fbc1e32981ea) Instead of relying on two nested `requestAnimationFrame` callbacks to detect when style and layout information have been applied (for computing the `anchor` padding in `sticky` mode), we instead now use `requestAnimationFrame` in combination with `setTimeout`. + + This should hopefully give us a more reliable hook into the point in time where the style and layout information have been calculated and the paint has occurred. + ## 1.6.2 ### Patch Changes diff --git a/packages/portal-navigation/package.json b/packages/portal-navigation/package.json index fcf90dfc..aca19ace 100644 --- a/packages/portal-navigation/package.json +++ b/packages/portal-navigation/package.json @@ -1,6 +1,6 @@ { "name": "@inventage-web-components/portal-navigation", - "version": "1.6.2", + "version": "1.6.3", "description": "A component implementing an opinionated (but generic and hence configurable) navigation pattern.", "license": "MIT", "author": "Inventage AG ", diff --git a/packages/portal-navigation/src/PortalNavigation.ts b/packages/portal-navigation/src/PortalNavigation.ts index c283a2ed..d96a4cd6 100644 --- a/packages/portal-navigation/src/PortalNavigation.ts +++ b/packages/portal-navigation/src/PortalNavigation.ts @@ -319,7 +319,7 @@ export class PortalNavigation extends LitElement { /** @private */ // Do not touch, this will automatically be updated based on the version in package.json in build & release scripts - readonly version = '1.6.2'; + readonly version = '1.6.3'; /** * Map of menu item ids → badges