From 4a66dd9dd06002371197975a00992038c0b3c848 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 17 Feb 2020 06:48:04 +0900 Subject: [PATCH] Fix glitch --- src/client/directives/size.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/directives/size.ts b/src/client/directives/size.ts index 140cb0bd7..c4dd7b145 100644 --- a/src/client/directives/size.ts +++ b/src/client/directives/size.ts @@ -54,6 +54,8 @@ export default { calc(); + vn.context.$on('hook:activated', calc); + const ro = new ResizeObserver((entries, observer) => { calc(); });