From ecee8d168ce6ba54ed424da8f52bc9675336d2a2 Mon Sep 17 00:00:00 2001 From: Nouman Tahir Date: Sun, 17 Apr 2022 01:51:38 +0500 Subject: [PATCH] fine tuned dropdown height mechanism --- src/components/dropdownButton/view/dropdownButtonView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/dropdownButton/view/dropdownButtonView.tsx b/src/components/dropdownButton/view/dropdownButtonView.tsx index d7a0070b2..82b92bd6c 100644 --- a/src/components/dropdownButton/view/dropdownButtonView.tsx +++ b/src/components/dropdownButton/view/dropdownButtonView.tsx @@ -75,7 +75,7 @@ const DropdownButtonView = ({ renderRowProps={{ underlayColor: EStyleSheet.value('$modalBackground'), style:styles.rowWrapper}} style={[!style ? styles.button : style]} textStyle={[textStyle || styles.buttonText]} - dropdownStyle={[styles.dropdown, dropdownStyle, !selectedOptionIndex && { height: 35 * (options.length + 1) }]} + dropdownStyle={[styles.dropdown, dropdownStyle, { height: 32 * (options.length + 1) }]} dropdownTextStyle={[dropdownTextStyle || styles.dropdownText]} dropdownTextHighlightStyle={styles.dropdownTextHighlight} options={options}