Hopefully fix overflow not being updated properly once it overflows once
All checks were successful
ci / deploy (push) Successful in 2m8s
All checks were successful
ci / deploy (push) Successful in 2m8s
This commit is contained in:
@@ -21,7 +21,13 @@
|
|||||||
},
|
},
|
||||||
2000,
|
2000,
|
||||||
)
|
)
|
||||||
$watch('metadata.title', () => isTitleOverflow = $refs.scrollTitle.offsetWidth < $refs.scrollTitle.scrollWidth)
|
$watch('metadata.title', (value, oldValue) => {
|
||||||
|
if (value != oldValue){
|
||||||
|
isTitleOverflow = false; // force a reset
|
||||||
|
return
|
||||||
|
}
|
||||||
|
isTitleOverflow = $refs.scrollTitle.offsetWidth < $refs.scrollTitle.scrollWidth
|
||||||
|
})
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
|
|||||||
Reference in New Issue
Block a user