Skip to content

Commit bf01d69

Browse files
author
Jordan Hunt
committed
add width and unset maxWidth for client < 8.18.7
1 parent cd35894 commit bf01d69

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

styles/native/ts/core/widgets/dropdown.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ export const DropDown: DropDownType = {
7979
},
8080
itemContainer: {
8181
// All ViewStyle properties & rippleColor & activeOpacity & underlayColor are allowed
82+
width: "100%",
83+
maxWidth: undefined, // unset core widget's default maxWidth value (prior to 8.18.7)
8284
paddingVertical: 6,
8385
paddingHorizontal: 16,
8486
backgroundColor: input.backgroundColor,
@@ -98,6 +100,8 @@ export const DropDown: DropDownType = {
98100
},
99101
selectedItemContainer: {
100102
// All ViewStyle properties are allowed
103+
width: "100%",
104+
maxWidth: undefined, // unset core widget's default maxWidth value (prior to 8.18.7)
101105
backgroundColor: contrast.lowest,
102106
},
103107
/* New dropdown styles end */

styles/native/ts/core/widgets/referenceselector.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ export const ReferenceSelector: DropDownType = {
8181
},
8282
itemContainer: {
8383
// All ViewStyle properties & rippleColor & activeOpacity & underlayColor are allowed
84+
width: "100%",
85+
maxWidth: undefined, // unset core widget's default maxWidth value (prior to 8.18.7)
8486
paddingVertical: 6,
8587
paddingHorizontal: 16,
8688
backgroundColor: input.backgroundColor,
@@ -100,6 +102,8 @@ export const ReferenceSelector: DropDownType = {
100102
},
101103
selectedItemContainer: {
102104
// All ViewStyle properties are allowed
105+
width: "100%",
106+
maxWidth: undefined, // unset core widget's default maxWidth value (prior to 8.18.7)
103107
backgroundColor: contrast.lowest,
104108
},
105109
/* New dropdown styles end */

0 commit comments

Comments
 (0)