Skip to content

Commit 08a4504

Browse files
cleidighbpasero
authored andcommitted
Remove cloneElementFont Fixes: bpasero comments (microsoft#68332)
1 parent 7c1fe9a commit 08a4504

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

src/vs/base/browser/ui/selectBox/selectBoxCustom.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,6 @@ export class SelectBoxList implements ISelectBoxDelegate, IListVirtualDelegate<I
428428
this.createSelectList(this.selectDropDownContainer);
429429
this.setOptionsList();
430430

431-
this.cloneElementFont(this.selectElement, this.selectDropDownContainer);
432-
433431
// This allows us to flip the position based on measurement
434432
// Set drop-down position above/below from required height and margins
435433
// If pre-layout cannot fit at least one option do not show drop-down
@@ -709,13 +707,6 @@ export class SelectBoxList implements ISelectBoxDelegate, IListVirtualDelegate<I
709707
return elementWidth;
710708
}
711709

712-
private cloneElementFont(source: HTMLElement, target: HTMLElement) {
713-
const fontSize = window.getComputedStyle(source, null).getPropertyValue('font-size');
714-
const fontFamily = window.getComputedStyle(source, null).getPropertyValue('font-family');
715-
target.style.fontFamily = fontFamily;
716-
target.style.fontSize = fontSize;
717-
}
718-
719710
private createSelectList(parent: HTMLElement): void {
720711

721712
// If we have already constructive list on open, skip

0 commit comments

Comments
 (0)