mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 02:08:47 +00:00
Markdown preview: filter hidden elements from scroll sync (fix microsoft#281247)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user