@effindomv2/fui-as 0.1.14 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -111,14 +111,14 @@ class DefaultDropdownFieldPresenter extends DropdownFieldPresenter {
|
|
|
111
111
|
constructor(metrics: DropdownFieldMetrics = DEFAULT_DROPDOWN_FIELD_METRICS) {
|
|
112
112
|
const valueNode = new Text("")
|
|
113
113
|
.selectable(false)
|
|
114
|
-
.
|
|
114
|
+
.fillSize()
|
|
115
115
|
.maxLines(1)
|
|
116
116
|
.wrapping(false) as Text;
|
|
117
117
|
valueNode
|
|
118
118
|
.overflowFade(true, false)
|
|
119
119
|
.verticalAlign(TextVerticalAlign.Center);
|
|
120
120
|
const valueHost = new FlexBox()
|
|
121
|
-
.
|
|
121
|
+
.fillSize()
|
|
122
122
|
.child(valueNode) as FlexBox;
|
|
123
123
|
const chevronHost = new FlexBox()
|
|
124
124
|
.width(metrics.chevronBoxSize, Unit.Pixel)
|
|
@@ -144,7 +144,8 @@ class DefaultDropdownFieldPresenter extends DropdownFieldPresenter {
|
|
|
144
144
|
.padding(metrics.paddingLeft, metrics.paddingTop, metrics.paddingRight, metrics.paddingBottom)
|
|
145
145
|
.bgColor(state.pressed && state.enabled ? theme.colors.background : theme.colors.surface);
|
|
146
146
|
this.valueHost
|
|
147
|
-
.fillWidth()
|
|
147
|
+
.fillWidth()
|
|
148
|
+
.fillHeight();
|
|
148
149
|
this.valueNode
|
|
149
150
|
.font(theme.fonts.body, metrics.fontSize)
|
|
150
151
|
.textColor(state.enabled ? theme.colors.textPrimary : theme.colors.textMuted);
|