mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2025-11-05 11:56:37 +00:00
followup
This commit is contained in:
parent
b4d34aacc5
commit
1605cd2619
1 changed files with 2 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ public class BlockCube extends Group {
|
||||||
|
|
||||||
private final Text heightText = new Text();
|
private final Text heightText = new Text();
|
||||||
private final Text medianFeeText = new Text();
|
private final Text medianFeeText = new Text();
|
||||||
private final Text unitsText = new Text(" s/vb");
|
private final Text unitsText = new Text();
|
||||||
private final TextFlow medianFeeTextFlow = new TextFlow();
|
private final TextFlow medianFeeTextFlow = new TextFlow();
|
||||||
private final Text txCountText = new Text();
|
private final Text txCountText = new Text();
|
||||||
private final Text elapsedText = new Text();
|
private final Text elapsedText = new Text();
|
||||||
|
|
@ -55,6 +55,7 @@ public class BlockCube extends Group {
|
||||||
});
|
});
|
||||||
this.medianFeeProperty.addListener((_, _, newValue) -> {
|
this.medianFeeProperty.addListener((_, _, newValue) -> {
|
||||||
medianFeeText.setText("~" + Math.round(Math.max(newValue.doubleValue(), 1.0d)));
|
medianFeeText.setText("~" + Math.round(Math.max(newValue.doubleValue(), 1.0d)));
|
||||||
|
unitsText.setText(" s/vb");
|
||||||
medianFeeTextFlow.setTranslateX((CUBE_SIZE - (medianFeeText.getLayoutBounds().getWidth() + unitsText.getLayoutBounds().getWidth())) / 2);
|
medianFeeTextFlow.setTranslateX((CUBE_SIZE - (medianFeeText.getLayoutBounds().getWidth() + unitsText.getLayoutBounds().getWidth())) / 2);
|
||||||
});
|
});
|
||||||
this.txCountProperty.addListener((_, _, newValue) -> {
|
this.txCountProperty.addListener((_, _, newValue) -> {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue