@brandocms/jupiter 3.48.1 → 3.48.2

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": "@brandocms/jupiter",
3
- "version": "3.48.1",
3
+ "version": "3.48.2",
4
4
  "description": "Frontend helpers.",
5
5
  "author": "Univers/Twined",
6
6
  "license": "UNLICENSED",
@@ -82,6 +82,7 @@ const DEFAULT_OPTIONS = {
82
82
  }
83
83
  }
84
84
  }
85
+
85
86
  export default class Application {
86
87
  constructor(opts = {}) {
87
88
  this.debugType = 1
@@ -543,8 +544,9 @@ export default class Application {
543
544
  */
544
545
  setvh100() {
545
546
  const root = document.querySelector(':root')
546
- root.style.setProperty('--vp-100vh', `${window.innerHeight}px`)
547
- root.style.setProperty('--vp-1vh', `${window.innerHeight * 0.01}px`)
547
+ const height = this.featureTests.results.ios ? screen.height : window.innerHeight
548
+ root.style.setProperty('--vp-100vh', `${height}px`)
549
+ root.style.setProperty('--vp-1vh', `${height * 0.01}px`)
548
550
  }
549
551
 
550
552
  setvw100() {