Fix overflow issue on calculated fillAmount

This commit is contained in:
Fabio Berger
2017-12-19 12:38:41 +01:00
parent 16179d2f8e
commit 66fe7b88b0

View File

@@ -258,22 +258,20 @@ export class FillOrder extends React.Component<FillOrderProps, FillOrderState> {
</div> </div>
</div> </div>
{!isUserMaker && {!isUserMaker &&
<div className="clearfix mx-auto" style={{width: 315, height: 108}}> <div className="clearfix mx-auto relative" style={{width: 235, height: 108}}>
<div className="col col-7" style={{maxWidth: 235}}> <TokenAmountInput
<TokenAmountInput label="Fill amount"
label="Fill amount" onChange={this.onFillAmountChange.bind(this)}
onChange={this.onFillAmountChange.bind(this)} shouldShowIncompleteErrs={false}
shouldShowIncompleteErrs={false} token={fillToken}
token={fillToken} tokenState={fillTokenState}
tokenState={fillTokenState} amount={fillAssetToken.amount}
amount={fillAssetToken.amount} shouldCheckBalance={true}
shouldCheckBalance={true} shouldCheckAllowance={true}
shouldCheckAllowance={true} />
/>
</div>
<div <div
className="col col-5 pl1" className="absolute sm-hide xs-hide"
style={{color: colors.grey400, paddingTop: 39}} style={{color: colors.grey400, right: -247, top: 39, width: 242}}
> >
= {accounting.formatNumber(orderReceiveAmount, 6)} {makerToken.symbol} = {accounting.formatNumber(orderReceiveAmount, 6)} {makerToken.symbol}
</div> </div>