Skip to content

Commit

Permalink
Cast toolbar height prop to an int
Browse files Browse the repository at this point in the history
If you passed height as a string, it would have the system bar's
height appended to it when setting the content height, typically
multiplying the correct padding by 10

See https://codepen.io/anon/pen/XeEdmq?editors=1010
  • Loading branch information
KaelWD committed Oct 8, 2017
1 parent 24dcd81 commit e9c2490
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/VToolbar/VToolbar.js
Expand Up @@ -51,7 +51,7 @@ export default {

computed: {
computedHeight () {
if (this.height) return this.height
if (this.height) return parseInt(this.height)
if (this.dense) return this.heights.dense
if (this.prominent ||
this.$vuetify.breakpoint.mdAndUp
Expand Down

0 comments on commit e9c2490

Please sign in to comment.