Skip to content

Commit

Permalink
Deprecated JavaFX method fix
Browse files Browse the repository at this point in the history
Bump appveyor to use JDK 9
  • Loading branch information
Jugen committed Jul 28, 2021
1 parent ff2871c commit d7f7f3a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
version: "{branch} {build}"

environment:
JAVA_HOME: C:\Program Files\Java\jdk1.8.0
JAVA_HOME: C:\Program Files\Java\jdk9
matrix:
- JAVA_OPTS: ""
- JAVA_OPTS: "-Djava.awt.headless=true -Dtestfx.robot=glass -Dtestfx.headless=true -Dprism.order=sw -Dprism.text=t2k -Dtestfx.setup.timeout=2500"
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/org/fxmisc/flowless/VirtualizedScrollPane.java
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,12 @@ protected double computeMaxHeight(double width) {

@Override
protected void layoutChildren() {
double layoutWidth = snapSize(getLayoutBounds().getWidth());
double layoutHeight = snapSize(getLayoutBounds().getHeight());
double layoutWidth = snapSizeX(getLayoutBounds().getWidth());
double layoutHeight = snapSizeY(getLayoutBounds().getHeight());
boolean vbarVisible = vbar.isVisible();
boolean hbarVisible = hbar.isVisible();
double vbarWidth = snapSize(vbarVisible ? vbar.prefWidth(-1) : 0);
double hbarHeight = snapSize(hbarVisible ? hbar.prefHeight(-1) : 0);
double vbarWidth = snapSizeY(vbarVisible ? vbar.prefWidth(-1) : 0);
double hbarHeight = snapSizeX(hbarVisible ? hbar.prefHeight(-1) : 0);

double w = layoutWidth - vbarWidth;
double h = layoutHeight - hbarHeight;
Expand Down

0 comments on commit d7f7f3a

Please # to comment.