diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-10-16 19:18:46 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-10-16 19:18:46 +0900 |
| commit | c194eddb1b2b9a38f918588819b480a5e80d7b97 (patch) | |
| tree | d77c2c85013ff3bcfde2dce4a90e957603b1b1a7 /src | |
| parent | :art: (diff) | |
| download | misskey-c194eddb1b2b9a38f918588819b480a5e80d7b97.tar.gz misskey-c194eddb1b2b9a38f918588819b480a5e80d7b97.tar.bz2 misskey-c194eddb1b2b9a38f918588819b480a5e80d7b97.zip | |
chore: fix spacer component
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/components/global/spacer.vue | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/components/global/spacer.vue b/src/client/components/global/spacer.vue index 9037de466c..1129d54c71 100644 --- a/src/client/components/global/spacer.vue +++ b/src/client/components/global/spacer.vue @@ -33,10 +33,16 @@ export default defineComponent({ onMounted(() => { ro = new ResizeObserver((entries) => { + /* iOSが対応していない adjust({ width: entries[0].borderBoxSize[0].inlineSize, height: entries[0].borderBoxSize[0].blockSize, }); + */ + adjust({ + width: root.value.offsetWidth, + height: root.value.offsetHeight, + }); }); ro.observe(root.value); |