From 133c7230bc6a0dca24ac20145a9717550e5238d4 Mon Sep 17 00:00:00 2001 From: LouisLam Date: Wed, 28 Jul 2021 23:03:37 +0800 Subject: [PATCH] fix resize problem --- src/components/HeartbeatBar.vue | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/components/HeartbeatBar.vue b/src/components/HeartbeatBar.vue index bfcb90850..eed132d1c 100644 --- a/src/components/HeartbeatBar.vue +++ b/src/components/HeartbeatBar.vue @@ -66,16 +66,9 @@ export default { let topBottom = (((this.beatHeight * this.hoverScale) - this.beatHeight) / 2); let leftRight = (((this.beatWidth * this.hoverScale) - this.beatWidth) / 2); - let width - if (this.maxBeat > 0) { - width = (this.beatWidth + this.beatMargin * 2) * this.maxBeat + (leftRight * 2) + "px" - } else { - width = "100%" - } - return { padding: `${topBottom}px ${leftRight}px`, - width: width, + width: "100%", } },