Add filter button on the right bottom

This commit is contained in:
Lukas Martinelli 2017-01-10 19:02:06 +01:00
parent 2ff8ec07bb
commit df61ae8c7a

View file

@ -95,22 +95,15 @@ export default class CombiningFilterEditor extends React.Component {
} }
return <div> return <div>
<div style={{ marginBottom: margins[2] }}> <div style={{ marginBottom: margins[1] }}>
<DocLabel <DocLabel
label={"Compound Filter"} label={"Compound Filter"}
doc={GlSpec.layer.filter.doc + " Combine multiple filters together by using a compound filter."} doc={GlSpec.layer.filter.doc + " Combine multiple filters together by using a compound filter."}
style={{ style={{
display: 'inline-block', display: 'inline-block',
width: '30%', width: '49%',
}} }}
/> />
<Button onClick={this.addFilterItem.bind(this)} style={{
display: 'inline-block',
width: '18%',
marginRight: '2%',
}}>
Add filter
</Button>
<SelectInput <SelectInput
value={combiningOp} value={combiningOp}
onChange={this.onFilterPartChanged.bind(this, 0)} onChange={this.onFilterPartChanged.bind(this, 0)}
@ -122,6 +115,15 @@ export default class CombiningFilterEditor extends React.Component {
/> />
</div> </div>
{editorBlocks} {editorBlocks}
<div style={{marginTop: margins[1]}}>
<Button onClick={this.addFilterItem.bind(this)} style={{
display: 'inline-block',
marginLeft: '79%',
width: '20%',
}}>
Add filter
</Button>
</div>
</div> </div>
} }
} }