diff --git a/src/components/Keyboard.vue b/src/components/Keyboard.vue index 703a732..3644b58 100644 --- a/src/components/Keyboard.vue +++ b/src/components/Keyboard.vue @@ -66,7 +66,7 @@ export default { this.$nextTick(() => { let _width = this.$refs.keyboard.clientWidth - this.space * 10; let normal = _width / 10; - if(this.width){ + if(this.width != 'auto'){ normal = parseInt(this.width.replace('px','')); } const special = normal * 1.5 + this.space / 2;