mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-16 09:35:36 -05:00
Add width and height properties to checkbox component (#7482)
This commit is contained in:
@@ -20,7 +20,7 @@ import { IWorkbenchThemeService } from 'vs/workbench/services/themes/common/work
|
||||
@Component({
|
||||
selector: 'modelview-checkbox',
|
||||
template: `
|
||||
<div #input [style.width]="getWidth()"></div>
|
||||
<div #input [style.width]="getWidth()" [style.height]="getHeight()"></div>
|
||||
`
|
||||
})
|
||||
export default class CheckBoxComponent extends ComponentBase implements IComponent, OnDestroy, AfterViewInit {
|
||||
@@ -82,6 +82,12 @@ export default class CheckBoxComponent extends ComponentBase implements ICompone
|
||||
} else {
|
||||
this._input.disable();
|
||||
}
|
||||
if (this.width) {
|
||||
this._input.setWidth(this.convertSize(this.width));
|
||||
}
|
||||
if (this.height) {
|
||||
this._input.setHeight(this.convertSize(this.height));
|
||||
}
|
||||
}
|
||||
|
||||
// CSS-bound properties
|
||||
|
||||
Reference in New Issue
Block a user