Closed doit132 closed 4 months ago
I can't reproduce this unfortunately. Can you send me maybe a sample document?
I can't reproduce this unfortunately. Can you send me maybe a sample document?↳
The key point is that the code block is located in the upper part of the visible area of the document.
If the code block is located in the middle or below the visible area, it will not cause jumping
I think that bug is coming from Obsidian. If I disable the plugin, the same behavior occurs. Can you verify that?
I think that bug is coming from Obsidian. If I disable the plugin, the same behavior occurs. Can you verify that?↳
Yes, I just realized this, but if I close the plugin in another library, it won't jump
It may also be related to the display of property, and if set to source, there will be no bounce
What do you mean by "if I close the plugin in another library, it won't jump"
If I disable the plugin and set the "Properties in document" to source, I still have that jumping. Correct me if I am wrong, but this seems to me as an Obsidian bug.
If I disable the plugin and set the "Properties in document" to source, I still have that jumping. Correct me if I am wrong, but this seems to me as an Obsidian bug.↳
If property is set to visible and plugin is turned on, there will definitely be jumping phenomenon If property is set to visible and plugin is turned off, there may not be any jumping phenomenon If property is set to source and plugin is opened, there will definitely be jumping phenomenon If property is set to source and plugin is turned off, there will be no jumping phenomenon
It's so weird, and I'm not sure what's going on
I am confused a little as well. This is with the property set to source, and plugin turned off:
I just checked again, and this issue seems to be solved now with the current Obsidian version. Maybe it was an Obsidian bug. Could you confirm it?
no reply received
no reply received 未收到答复
I found that this may have been caused by me modifying the font size in the code block
.cm-s-obsidian .HyperMD-codeblock {
font-size: 0.7em;
}
Even in the latest version, if I enable the CSS style above, this phenomenon will still occur, So I turned off this style setting
That's interesting, because I could reproduce the issue, but I didn't modify the font size of the code blocks. I will look at it again.
Animation demonstration