mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-30 02:08:58 -04:00
Fix positioning of info popopver
This commit is contained in:
parent
a053c50313
commit
a0eef9b5c0
1 changed files with 2 additions and 2 deletions
|
@ -497,8 +497,8 @@ public class CreateOfferCB extends CachedCodeBehind<CreateOfferPM> {
|
||||||
private Point2D getPopupPosition() {
|
private Point2D getPopupPosition() {
|
||||||
Window window = totalToPayInfoIconLabel.getScene().getWindow();
|
Window window = totalToPayInfoIconLabel.getScene().getWindow();
|
||||||
Point2D point = totalToPayInfoIconLabel.localToScene(0, 0);
|
Point2D point = totalToPayInfoIconLabel.localToScene(0, 0);
|
||||||
double x = point.getX() + window.getX() + totalToPayInfoIconLabel.getWidth() + 20;
|
double x = point.getX() + window.getX() + totalToPayInfoIconLabel.getWidth() - 3;
|
||||||
double y = point.getY() + window.getY() + Math.floor(totalToPayInfoIconLabel.getHeight() / 2);
|
double y = point.getY() + window.getY() + Math.floor(totalToPayInfoIconLabel.getHeight() / 2) - 9;
|
||||||
return new Point2D(x, y);
|
return new Point2D(x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue