Skip to content

Commit

Permalink
chore: remove unused positionlistbox method
Browse files Browse the repository at this point in the history
  • Loading branch information
Najika Yoo committed Jan 18, 2024
1 parent 5e7c770 commit e6bfd12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
10 changes: 0 additions & 10 deletions packages/combobox/src/Combobox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,16 +263,6 @@ export class Combobox extends Textfield {
return super.shouldUpdate(changed);
}

private positionListbox(): void {
const targetRect = this.overlay.getBoundingClientRect();
const rootRect = this.getBoundingClientRect();
this.listbox.style.transform = `translate(${
targetRect.x - rootRect.x
}px, ${targetRect.y - rootRect.y}px)`;
this.listbox.style.height = `${targetRect.height}px`;
this.listbox.style.maxHeight = `${targetRect.height}px`;
}

protected override onBlur(event: FocusEvent): void {
if (
event.relatedTarget &&
Expand Down
4 changes: 2 additions & 2 deletions packages/combobox/test/combobox.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ describe('Combobox', () => {
const test = await fixture<HTMLDivElement>(html`
<div>${withFieldLabel()}</div>
`);
const el = test.querySelector('sp-combobox') as Combobox;
const el = test.querySelector('sp-combobox') as unknown as Combobox;

await elementUpdated(el);

Expand All @@ -96,7 +96,7 @@ describe('Combobox', () => {
const test = await fixture<HTMLDivElement>(html`
<div>${withFieldLabel()}</div>
`);
const el = test.querySelector('sp-combobox') as Combobox;
const el = test.querySelector('sp-combobox') as unknown as Combobox;
const name = 'Pick something';
const webkitName = 'Pick something Bde Thing 2';
type NamedNode = { name: string; role: string; value?: string };
Expand Down

0 comments on commit e6bfd12

Please # to comment.