Skip to content

Commit

Permalink
Fix: Image fails to reload when resizing browser #7 (#15)
Browse files Browse the repository at this point in the history
* The cursor was not being reset while redrawing leading to an empty masonry wall if no new items existed

* Fixed code styling

* Update vue-masonry-wall.vue

Co-authored-by: Muhammad Syed <[email protected]>
Co-authored-by: Fuxing Loh <[email protected]>
  • Loading branch information
3 people authored Nov 17, 2020
1 parent ca3eebb commit cb57939
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vue-masonry-wall.vue
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
redraw() {
this.ready = false
this.columns.splice(0)
this.cursor = 0
this.columns.push(..._newColumns(this._columnSize()))
this.ready = true
this._fill()
Expand Down

0 comments on commit cb57939

Please sign in to comment.