mirror of
https://github.com/heyman/heynote.git
synced 2025-02-25 14:42:10 +01:00
Set correct width for block backgrounds
This commit is contained in:
parent
f1038ce696
commit
551089d613
@ -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
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user