Reset scroll

This commit is contained in:
crschnick 2024-08-28 23:41:33 +00:00
parent 6cc0771974
commit 3dab6a3d18

View file

@ -28,6 +28,12 @@ public class StoreEntryListComp extends SimpleComp {
return custom; return custom;
}, },
true); true);
content.apply(struc -> {
// Reset scroll
StoreViewState.get().getActiveCategory().addListener((observable, oldValue, newValue) -> {
struc.get().setVvalue(0);
});
});
return content.styleClass("store-list-comp"); return content.styleClass("store-list-comp");
} }