Fine tune typedInput flexbox handling on option-button

This commit is contained in:
Nick O'Leary
2020-04-08 17:06:11 +01:00
parent 821b5686f2
commit e26eb85718
3 changed files with 14 additions and 16 deletions

View File

@@ -657,11 +657,13 @@
this.optionExpandButton.shown = false;
}
if (this.optionSelectTrigger) {
this.optionSelectTrigger.show();
this.optionSelectTrigger.css({"display":"inline-flex"});
if (!opt.hasValue) {
this.optionSelectTrigger.css({"flex-grow":1})
this.elementDiv.hide();
this.valueLabelContainer.hide();
} else {
this.optionSelectTrigger.css({"flex-grow":0})
this.elementDiv.show();
this.valueLabelContainer.hide();
}