mirror of
https://github.com/heyman/heynote.git
synced 2025-02-25 22:52:05 +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) {
|
if (update.geometryChanged) {
|
||||||
update.view.requestMeasure({
|
update.view.requestMeasure({
|
||||||
read(a) {
|
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