mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-22 09:35:37 -05:00
fix dropdown behavior (#23708)
This commit is contained in:
@@ -79,7 +79,7 @@ export class Dropdown extends BaseDropdown {
|
||||
}
|
||||
}
|
||||
|
||||
export class DropdownList extends BaseDropdown {
|
||||
export class DropdownList extends Dropdown {
|
||||
protected borderWidth = 1;
|
||||
|
||||
private button?: Button;
|
||||
@@ -145,7 +145,7 @@ export class DropdownList extends BaseDropdown {
|
||||
/**
|
||||
* Render the dropdown contents
|
||||
*/
|
||||
protected renderContents(container: HTMLElement): IDisposable | null {
|
||||
protected override renderContents(container: HTMLElement): IDisposable | null {
|
||||
let div = DOM.append(container, this._contentContainer);
|
||||
div.style.width = (DOM.getTotalWidth(this.element) - this.borderWidth * 2) + 'px'; // Subtract border width
|
||||
return { dispose: () => { } };
|
||||
|
||||
Reference in New Issue
Block a user