Skip to content

Commit

Permalink
1.0.0-rc.2 (#34)
Browse files Browse the repository at this point in the history
* chore(package): add stan to contributors (#32)

* fix(home): eager onResize would prevent render (#33)
  • Loading branch information
replygirl committed Jul 14, 2020
1 parent 1657a79 commit 120af9e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"private": true,
"repository": "https://github.com/BSA-US/primer.git",
"contributors": [
"replygirl <[email protected]> (https://twitter.com/replygirI)"
"replygirl <[email protected]> (https://twitter.com/replygirI)",
"stanleepark <[email protected]>"
],
"scripts": {
"serve": "vue-cli-service serve",
Expand Down
16 changes: 9 additions & 7 deletions src/views/Home/Filter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,16 @@ export default {
this.$emit(`option-${active ? 'de' : ''}activated`, name)
},
onResized() {
const endItemWidth =
this.$refs[this.isFlipped ? 'first' : 'last'].offsetWidth
const padding =
parseInt(getComputedStyle(this.$refs.ul).getPropertyValue(
`padding-${this.isFlipped ? 'right' : 'left'}`
), 10)
if (this.$refs.first && this.$refs.last) {
const endItemWidth =
this.$refs[this.isFlipped ? 'first' : 'last'].offsetWidth
const padding =
parseInt(getComputedStyle(this.$refs.ul).getPropertyValue(
`padding-${this.isFlipped ? 'right' : 'left'}`
), 10)
this.endPadding = `${window.innerWidth - (endItemWidth + padding)}px`
this.endPadding = `${window.innerWidth - (endItemWidth + padding)}px`
}
}
}
}
Expand Down

1 comment on commit 120af9e

@vercel
Copy link

@vercel vercel bot commented on 120af9e Jul 14, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.