Fix BDC table icons (#13539)

This commit is contained in:
Charles Gagnon
2020-11-24 15:36:22 -08:00
committed by GitHub
parent b03a914934
commit a0d89449cc
2 changed files with 8 additions and 6 deletions

View File

@@ -157,6 +157,10 @@ export default class ButtonComponent extends ComponentWithIconBase<azdata.Button
if (this.iconPath) {
this._button.element.style.backgroundSize = `${this.getIconWidth()} ${this.getIconHeight()}`;
this._button.element.style.paddingLeft = this.getIconWidth();
// If we have an icon but no specified height then default to the height of the icon so we're sure it fits
if (this.height === undefined) {
this._button.setHeight(convertSize(this.getIconHeight().toString()));
}
}
}