Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: FXMisc/Flowless
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.6.7
Choose a base ref
...
head repository: FXMisc/Flowless
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.6.8
Choose a head ref
  • 5 commits
  • 4 files changed
  • 2 contributors

Commits on Nov 3, 2021

  1. Copy the full SHA
    3e1bbb3 View commit details

Commits on Nov 12, 2021

  1. Update README.md

    Jugen authored Nov 12, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    ef21d12 View commit details

Commits on Jan 2, 2022

  1. compile is removed from Gradle (#102)

    `implementation` is used now
    satsen authored Jan 2, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    f8a6538 View commit details

Commits on Jan 20, 2022

  1. Copy the full SHA
    2a49e86 View commit details

Commits on Jan 27, 2022

  1. Version 0.6.8 Release

    Jugen committed Jan 27, 2022
    Copy the full SHA
    d8b6bb9 View commit details
Showing with 24 additions and 7 deletions.
  1. +6 −0 CHANGELOG.md
  2. +6 −4 README.md
  3. +10 −1 build.gradle
  4. +2 −2 src/main/java/org/fxmisc/flowless/VirtualizedScrollPane.java
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## [v0.6.8](https://github.com/FXMisc/Flowless/tree/v0.6.8) (2021-10-19)
[Full Changelog](https://github.com/FXMisc/Flowless/compare/v0.6.7...v0.6.8)

- Corrected swapped X & Y snapsize methods [\#103](https://github.com/FXMisc/Flowless/issues/103)
- Added auto module to jar manifest

## [v0.6.7](https://github.com/FXMisc/Flowless/tree/v0.6.7) (2021-10-19)
[Full Changelog](https://github.com/FXMisc/Flowless/compare/v0.6.6...v0.6.7)

10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Flowless
========

Please note that as from version **0.6.5** Flowless requires Java 9 or newer.

Efficient VirtualFlow for JavaFX. VirtualFlow is a layout container that lays out _cells_ in a vertical or horizontal _flow_. The main feature of a _virtual_ flow is that only the currently visible cells are rendered in the scene. You may have a list of thousands of items, but only, say, 30 cells are rendered at any given time.

JavaFX has its own VirtualFlow, which is not part of the public API, but is used, for example, in the implementation of [ListView](https://api.javafx.dev/javafx.controls/javafx/scene/control/ListView.html). It is, however, [not very efficient](https://bugs.openjdk.java.net/browse/JDK-8091726) when updating the viewport on items changed or scroll.
@@ -73,25 +75,25 @@ Include Flowless in your project

| Group ID | Artifact ID | Version |
| :---------: | :---------: | :-----: |
| org.fxmisc.flowless | flowless | 0.6.7 |
| org.fxmisc.flowless | flowless | 0.6.8 |

#### Gradle example

```groovy
dependencies {
compile group: 'org.fxmisc.flowless', name: 'flowless', version: '0.6.7'
implementation group: 'org.fxmisc.flowless', name: 'flowless', version: '0.6.8'
}
```

#### Sbt example

```scala
libraryDependencies += "org.fxmisc.flowless" % "flowless" % "0.6.7"
libraryDependencies += "org.fxmisc.flowless" % "flowless" % "0.6.8"
```

#### Manual download

Download the [0.6.7 jar](https://github.com/FXMisc/Flowless/releases/tag/v0.6.7) and place it on your classpath.
Download the [0.6.8 jar](https://github.com/FXMisc/Flowless/releases/tag/v0.6.8) and place it on your classpath.

Documentation
-------------
11 changes: 10 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ plugins {
id 'signing'
}

version = '0.6.5-SNAPSHOT'
version = '0.6.8-SNAPSHOT'

repositories {
mavenCentral()
@@ -35,6 +35,14 @@ dependencies {
testImplementation "org.testfx:openjfx-monocle:8u76-b04"
}

jar {
manifest {
attributes(
'Automatic-Module-Name': 'org.fxmisc.flowless'
)
}
}

javadoc {
// ignore missing Javadoc comments or tags
options.addStringOption('Xdoclint:all,-missing', '-quiet')
@@ -54,6 +62,7 @@ javadoc {

task fatJar(type: Jar, dependsOn: classes) {
archiveAppendix = 'fat'
manifest.attributes( 'Automatic-Module-Name': 'org.fxmisc.flowless' )
from sourceSets.main.output
from { configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
}
4 changes: 2 additions & 2 deletions src/main/java/org/fxmisc/flowless/VirtualizedScrollPane.java
Original file line number Diff line number Diff line change
@@ -299,8 +299,8 @@ protected void layoutChildren() {
double layoutHeight = snapSizeY(getLayoutBounds().getHeight());
boolean vbarVisible = vbar.isVisible();
boolean hbarVisible = hbar.isVisible();
double vbarWidth = snapSizeY(vbarVisible ? vbar.prefWidth(-1) : 0);
double hbarHeight = snapSizeX(hbarVisible ? hbar.prefHeight(-1) : 0);
double vbarWidth = snapSizeX(vbarVisible ? vbar.prefWidth(-1) : 0);
double hbarHeight = snapSizeY(hbarVisible ? hbar.prefHeight(-1) : 0);

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