More list box visibility adjustments [stage]

This commit is contained in:
crschnick
2025-03-10 03:25:34 +00:00
parent 9ce9c31674
commit 8dd23fde64
2 changed files with 7 additions and 6 deletions

View File

@@ -144,6 +144,8 @@ public class ListBoxViewComp<T> extends Comp<CompStructure<ScrollPane>> {
}
vbox.sceneProperty().addListener((observable, oldValue, newValue) -> {
dirty.set(true);
if (newValue != null) {
animationTimer.start();
} else {
@@ -151,12 +153,12 @@ public class ListBoxViewComp<T> extends Comp<CompStructure<ScrollPane>> {
}
Node c = vbox;
while ((c = c.getParent()) != null) {
do {
c.boundsInParentProperty().addListener((observable1, oldValue1, newValue1) -> {
dirty.set(true);
});
}
dirty.set(true);
} while ((c = c.getParent()) != null);
if (newValue != null) {
newValue.heightProperty().addListener((observable1, oldValue1, newValue1) -> {
dirty.set(true);
@@ -173,8 +175,7 @@ public class ListBoxViewComp<T> extends Comp<CompStructure<ScrollPane>> {
var paneHeight = pane.getHeight();
var scrollCenter = box.getBoundsInLocal().getHeight() * pane.getVvalue();
var minBoundsHeight = scrollCenter - paneHeight;
// Expand a little bit more to the bottom for scrolling
var maxBoundsHeight = scrollCenter + (paneHeight * 1.5);
var maxBoundsHeight = scrollCenter + paneHeight;
var nodeMinHeight = node.getBoundsInParent().getMinY();
var nodeMaxHeight = node.getBoundsInParent().getMaxY();

View File

@@ -1 +1 @@
15.4-8
15.4-9