Skip to content
Snippets Groups Projects
Commit c194eddb authored by syuilo's avatar syuilo
Browse files

chore: fix spacer component

parent 4ba40625
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment