Merge pull request #199 from orangemug/fix/issue-97-layer-list-cutoff

Fixed layer list cutoff (#97)
This commit is contained in:
Orange Mug authored and GitHub committed 2017-11-29 19:30:19 +00:00
commit ed98db8ae3
3 files changed
+70 -3

No files matched your search

@@ -12,16 +12,19 @@ class LayerSourceLayer extends React.Component {
value: PropTypes.string,
onChange: PropTypes.func,
sourceLayerIds: PropTypes.array,
isFixed: PropTypes.bool,
}
static defaultProps = {
onChange: () => {},
sourceLayerIds: [],
isFixed: false
}
render() {
return <InputBlock label={"Source Layer"} doc={styleSpec.latest.layer['source-layer'].doc}>
<AutocompleteInput
keepMenuWithinWindowBounds={!!this.props.isFixed}
value={this.props.value}
onChange={this.props.onChange}
options={this.props.sourceLayerIds.map(l => [l, l])}