mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-25 09:00:26 +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;
|
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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue