Markdown preview: filter hidden elements from scroll sync (fix microsoft#281247)

This commit is contained in:
MohamedEmirHajji
2025-12-10 17:01:55 +01:00
parent e04a029f0e
commit 7da4bbe808

View File

@@ -30,7 +30,7 @@ export class CodeLineElement {
}
const bounds = this.element.getBoundingClientRect();
if (bounds.height === 0 && bounds.width === 0) {
if (bounds.height === 0 || bounds.width === 0) {
return false;
}