mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-03 08:57:14 +03:00
UBERF-8242 Fix scroll jumping in codeblock (#6695)
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
parent
a9fcdfc61d
commit
f43f247b5c
@ -134,7 +134,7 @@ function createDecorations (doc: ProseMirrorNode, options: CodeBlockLowlightOpti
|
||||
doc.descendants((node, pos) => {
|
||||
if (node.type.name === CodeBlockLowlight.name) {
|
||||
decorations.push(
|
||||
Decoration.widget(pos + node.nodeSize - 1, (view) => {
|
||||
Decoration.widget(pos + 1, (view) => {
|
||||
const button = createLangButton(node.attrs.language)
|
||||
|
||||
if (view.editable) {
|
||||
|
Loading…
Reference in New Issue
Block a user