Skip to content

Commit

Permalink
Trigger validation of volume when percentage price is changed. Fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
ripcurlx committed Dec 11, 2018
1 parent 2da9643 commit fe53c0b
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,11 @@ public void onFocusOutPriceAsPercentageTextField(boolean oldValue, boolean newVa
inputIsMarketBasedPrice = true;
}
marketPriceMargin.set(btcFormatter.formatRoundedDoubleWithPrecision(dataModel.getMarketPriceMargin() * 100, 2));

// We want to trigger a recalculation of the volume
UserThread.execute(() -> {
onFocusOutVolumeTextField(true, false);
});
}

void onFocusOutVolumeTextField(boolean oldValue, boolean newValue) {
Expand Down

0 comments on commit fe53c0b

Please sign in to comment.