Skip to content

Commit

Permalink
Fixed docking of window to a very small size
Browse files Browse the repository at this point in the history
  • Loading branch information
madhephaestus committed Jun 24, 2019
1 parent 9ee76b1 commit 83651a2
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,41 @@ public double prefHeight(double height) {
}

}
/**
* Returns the {@code SwingNode}'s minimum width for use in layout calculations.
* This value corresponds to the minimum width of the Swing component.
*
* @return the minimum width that the node should be resized to during layout
*/
@Override
public double maxWidth(double height) {
try {
return super.maxWidth(height);
} catch (Exception e) {
// System.out.println("Error in "+file);
// e.printStackTrace();
return maxWidthProperty().doubleValue();
}

}

/**
* Returns the {@code SwingNode}'s minimum height for use in layout
* calculations. This value corresponds to the minimum height of the Swing
* component.
*
* @return the minimum height that the node should be resized to during layout
*/
@Override
public double maxHeight(double width) {
try {
return super.maxHeight(width);
} catch (Exception e) {
// System.out.println("Error in "+file);
// e.printStackTrace();
return maxHeightProperty().doubleValue();
}
}

/**
* Returns the {@code SwingNode}'s minimum width for use in layout calculations.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
app.name=BowlerStudio
app.version=0.31.9
app.version=0.32.0

0 comments on commit 83651a2

Please sign in to comment.