Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion components/ModalDropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,13 @@ export default class ModalDropdown extends Component {
const windowWidth = dimensions.width;
const windowHeight = dimensions.height;

const dropdownHeight = (dropdownStyle && StyleSheet.flatten(dropdownStyle).height) ||

let dropdownHeight = (this.props.dropdownStyle && StyleSheet.flatten(this.props.dropdownStyle).height) ||
StyleSheet.flatten(styles.dropdown).height;
if (dropdownHeight == "auto") {
let itemHeight = (this.props.style && StyleSheet.flatten(this.props.style).height);
dropdownHeight = itemHeight * this.props.options.length;
Copy link
Owner

@sohobloo sohobloo Feb 9, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

possibly missing separator height in this way.
StyleSheet.flatten(this.props.style).height seems not the item height.

}

const bottomSpace = windowHeight - this._buttonFrame.y - this._buttonFrame.h;
const rightSpace = windowWidth - this._buttonFrame.x;
Expand Down