Skip to content

Commit a73fe62

Browse files
authored
Merge pull request #3243 from jeanp413/measure-charsize-on-devicePixelRatioChange
Force char size measurement when devicePixelRatio changes
2 parents 2936f80 + 350f6cf commit a73fe62

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)