Skip to content

Commit

Permalink
fix bug with q-parallax when using ssr (#7196)
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanDylanGoff authored Jun 10, 2020
1 parent 439bdda commit 6fa7e14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/src/components/parallax/QParallax.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ export default Vue.extend({
: this.$refs.media

this.media.onload = this.media.onloadstart = this.media.loadedmetadata = this.__onResize
this.__onResize()
this.media.style.display = 'initial'

if (window.IntersectionObserver !== void 0) {
this.observer = new IntersectionObserver(entries => {
Expand Down
1 change: 1 addition & 0 deletions ui/src/components/parallax/QParallax.sass
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@
min-width: 100%
min-height: 100%
will-change: transform
display: none

0 comments on commit 6fa7e14

Please sign in to comment.