Set correct width for block backgrounds

This commit is contained in:
Jonatan Heyman 2022-12-29 18:44:33 +01:00
parent f1038ce696
commit 551089d613
1 changed files with 2 additions and 1 deletions

View File

@ -126,7 +126,8 @@ const blockLayer = () => {
if (update.geometryChanged) {
update.view.requestMeasure({
read(a) {
editorWidth = update.view.dom.clientWidth
const gutterWidth = update.view.contentDOM.previousSibling.clientWidth
editorWidth = update.view.contentDOM.clientWidth + gutterWidth
}
})
}