Skip to content

Commit

Permalink
Fix #1185.
Browse files Browse the repository at this point in the history
Removed limitations for band enhancement. Now the user can insert
decimal values, without any limitation (except that the min have to
be a lower value that the max).
The values 0, 255 will only used as initial values (until not able
to retrieve the limits from the original data).
  • Loading branch information
offtherailz committed Oct 21, 2016
1 parent 9e3ad2a commit 60e1a2c
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions web/client/components/style/BandSelector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const BandSelector = React.createClass({
</Col>
{ this.props.contrast === "GammaValue" ? (<Col xs={4}>
<NumberPicker
format="#,###.##"
format="-#,###.##"
precision={3}
step={0.1}
min={0}
Expand Down Expand Up @@ -105,14 +105,20 @@ const BandSelector = React.createClass({
{this.props.contrast === "Normalize" && this.props.algorithm !== "none" ? (
<Row>
<Col xsOffset={2} xs={4}>
<NumberPicker min={1} max={254}
value={this.props.min}
onChange={(v) => this.props.onChange("min", v)}
<NumberPicker
format="-#,###.##"
precision={3}
max={this.props.max - 1}
value={this.props.min}
onChange={(v) => this.props.onChange("min", v)}
/></Col>
<Col xs={4}>
<NumberPicker min={this.props.min + 1} max={255}
value={this.props.max}
onChange={(v) => this.props.onChange("max", v)}
<NumberPicker
format="-#,###.##"
precision={3}
min={this.props.min + 1}
value={this.props.max}
onChange={(v) => this.props.onChange("max", v)}
/></Col>
</Row>) : null }
</Grid>);
Expand Down

0 comments on commit 60e1a2c

Please sign in to comment.