This commit is contained in:
Rob Lourens 2021-11-15 12:28:35 -08:00
parent c157ab781b
commit a277202652

View file

@ -363,11 +363,8 @@ export class InputBox extends Widget {
}
public set paddingRight(paddingRight: number) {
if (this.options.flexibleHeight && this.options.flexibleWidth) {
this.input.style.width = `calc(100% - ${paddingRight}px)`;
} else {
this.input.style.paddingRight = paddingRight + 'px';
}
// Set width to avoid hint text overlapping buttons
this.input.style.width = `calc(100% - ${paddingRight}px)`;
if (this.mirror) {
this.mirror.style.paddingRight = paddingRight + 'px';