chore: fix spacer component

This commit is contained in:
syuilo 2021-10-16 19:18:46 +09:00
parent 081b6e96fb
commit 288df2f7be

View file

@ -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);