forked from profectus/Profectus
Update bounding rects when fonts have loaded in
This fixes the issue with everything shifting slightly once they load, invalidating all the bounding rects until they are next updated
This commit is contained in:
parent
af9b2a8d19
commit
69468d88c0
2 changed files with 2 additions and 0 deletions
|
@ -29,6 +29,7 @@ function updateTop() {
|
||||||
}
|
}
|
||||||
|
|
||||||
nextTick(updateTop);
|
nextTick(updateTop);
|
||||||
|
document.fonts.ready.then(updateTop);
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
const el = element.value?.parentElement;
|
const el = element.value?.parentElement;
|
||||||
|
|
|
@ -50,6 +50,7 @@ function updateNodes() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
document.fonts.ready.then(updateNodes);
|
||||||
|
|
||||||
const validLinks = computed(() => {
|
const validLinks = computed(() => {
|
||||||
const n = nodes.value;
|
const n = nodes.value;
|
||||||
|
|
Loading…
Reference in a new issue