From e11a5a823a84be557630e5347a43831dcf9306a5 Mon Sep 17 00:00:00 2001 From: orangemug Date: Wed, 29 Nov 2017 10:20:07 +0000 Subject: [PATCH] Only limit AutoComplete to window bounds if element is fixed. --- src/components/layers/LayerSourceLayerBlock.jsx | 4 +++- src/components/modals/AddModal.jsx | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/layers/LayerSourceLayerBlock.jsx b/src/components/layers/LayerSourceLayerBlock.jsx index 838ffd7..d8b898d 100644 --- a/src/components/layers/LayerSourceLayerBlock.jsx +++ b/src/components/layers/LayerSourceLayerBlock.jsx @@ -12,17 +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 [l, l])} diff --git a/src/components/modals/AddModal.jsx b/src/components/modals/AddModal.jsx index ab4a6de..bb30a7c 100644 --- a/src/components/modals/AddModal.jsx +++ b/src/components/modals/AddModal.jsx @@ -127,6 +127,7 @@ class AddModal extends React.Component { } {this.state.type !== 'background' && this.state.type !== 'raster' && this.setState({ 'source-layer': v })}