mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-25 00:50:31 +00:00
Reset scroll
This commit is contained in:
parent
6cc0771974
commit
3dab6a3d18
1 changed files with 6 additions and 0 deletions
|
@ -28,6 +28,12 @@ public class StoreEntryListComp extends SimpleComp {
|
|||
return custom;
|
||||
},
|
||||
true);
|
||||
content.apply(struc -> {
|
||||
// Reset scroll
|
||||
StoreViewState.get().getActiveCategory().addListener((observable, oldValue, newValue) -> {
|
||||
struc.get().setVvalue(0);
|
||||
});
|
||||
});
|
||||
return content.styleClass("store-list-comp");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue