Fix to keep autocomplete menu within window bounds.

This commit is contained in:
orangemug
2017-11-08 15:44:43 +00:00
parent a76e08aee7
commit 401c920e47
2 changed files with 63 additions and 3 deletions

View File

@@ -22,6 +22,7 @@ class LayerSourceLayer extends React.Component {
render() {
return <InputBlock label={"Source Layer"} doc={styleSpec.latest.layer['source-layer'].doc}>
<AutocompleteInput
keepMenuWithinWindowBounds={true}
value={this.props.value}
onChange={this.props.onChange}
options={this.props.sourceLayerIds.map(l => [l, l])}