mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-15 07:08:56 +09:00
chore: fix spacer component
This commit is contained in:
parent
4ba4062519
commit
c194eddb1b
@ -33,10 +33,16 @@ export default defineComponent({
|
|||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
ro = new ResizeObserver((entries) => {
|
ro = new ResizeObserver((entries) => {
|
||||||
|
/* iOSが対応していない
|
||||||
adjust({
|
adjust({
|
||||||
width: entries[0].borderBoxSize[0].inlineSize,
|
width: entries[0].borderBoxSize[0].inlineSize,
|
||||||
height: entries[0].borderBoxSize[0].blockSize,
|
height: entries[0].borderBoxSize[0].blockSize,
|
||||||
});
|
});
|
||||||
|
*/
|
||||||
|
adjust({
|
||||||
|
width: root.value.offsetWidth,
|
||||||
|
height: root.value.offsetHeight,
|
||||||
|
});
|
||||||
});
|
});
|
||||||
ro.observe(root.value);
|
ro.observe(root.value);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user