alt: adjust window border

This commit is contained in:
huanghongxun 2020-04-07 11:05:11 +08:00
parent bf4c831047
commit dd94d2254f
2 changed files with 6 additions and 6 deletions

View File

@ -277,19 +277,19 @@ public class DecoratorSkin extends SkinBase<Decorator> {
} }
private boolean isRightEdge(double x, double y, Bounds boundsInParent) { private boolean isRightEdge(double x, double y, Bounds boundsInParent) {
return x < root.getWidth() && x > root.getWidth() - root.snappedLeftInset(); return x < root.getWidth() && x >= root.getWidth() - root.snappedLeftInset();
} }
private boolean isTopEdge(double x, double y, Bounds boundsInParent) { private boolean isTopEdge(double x, double y, Bounds boundsInParent) {
return y >= 0 && y < root.snappedLeftInset(); return y >= 0 && y <= root.snappedTopInset();
} }
private boolean isBottomEdge(double x, double y, Bounds boundsInParent) { private boolean isBottomEdge(double x, double y, Bounds boundsInParent) {
return y < root.getHeight() && y > root.getHeight() - root.snappedLeftInset(); return y < root.getHeight() && y >= root.getHeight() - root.snappedLeftInset();
} }
private boolean isLeftEdge(double x, double y, Bounds boundsInParent) { private boolean isLeftEdge(double x, double y, Bounds boundsInParent) {
return x >= 0 && x < root.snappedLeftInset(); return x >= 0 && x <= root.snappedLeftInset();
} }
private boolean setStageWidth(double width) { private boolean setStageWidth(double width) {

View File

@ -1119,8 +1119,8 @@
} }
.resize-border { .resize-border {
-fx-border-color: -fx-base-color; -fx-border-color: black;
-fx-border-width: 2; -fx-border-width: 1;
} }
.debug-border { .debug-border {