Small bug fixes [release]

This commit is contained in:
crschnick 2023-02-04 09:53:05 +00:00
parent 84931ed6ad
commit 241362dce0
3 changed files with 6 additions and 6 deletions

View file

@ -7,6 +7,7 @@ import io.xpipe.extension.fxcomps.augment.GrowAugment;
import io.xpipe.extension.fxcomps.impl.HorizontalComp;
import io.xpipe.extension.fxcomps.impl.VerticalComp;
import io.xpipe.extension.fxcomps.util.BindingsHelper;
import javafx.beans.binding.Bindings;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.scene.layout.*;
@ -79,10 +80,6 @@ public class StoreEntrySection implements StorageFilter.Filterable {
});
List<Comp<?>> topEntryList = top ? List.of(root) : List.of(icon, root);
if (children.size() == 0) {
return new HorizontalComp(topEntryList);
}
var all = children;
var shown = BindingsHelper.filteredContentBinding(
all,
@ -103,7 +100,8 @@ public class StoreEntrySection implements StorageFilter.Filterable {
return new VerticalComp(List.of(
new HorizontalComp(topEntryList),
new HorizontalComp(List.of(spacer, content))
.apply(struc -> struc.get().setFillHeight(true))));
.apply(struc -> struc.get().setFillHeight(true))
.hide(Bindings.size(children).isEqualTo(0))));
}
@Override

2
dist/changelogs/0.4.26.md vendored Normal file
View file

@ -0,0 +1,2 @@
- Improve tool integrations for all platforms
- Fix small display bugs

View file

@ -1 +1 @@
0.4.25
0.4.26