Skip to content

Commit 350f6cf

Browse files
committed
1 parent 2936f80 commit 350f6cf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/browser/services/RenderService.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ export class RenderService extends Disposable implements IRenderService {
174174
}
175175

176176
public onDevicePixelRatioChange(): void {
177+
// Force char size measurement as DomMeasureStrategy(getBoundingClientRect) is not stable
178+
// when devicePixelRatio changes
179+
this._charSizeService.measure();
180+
177181
this._renderer.onDevicePixelRatioChange();
178182
this.refreshRows(0, this._rowCount - 1);
179183
}

0 commit comments

Comments
 (0)