Use ScrollPosition.offset() to get initial scroll position
This commit is contained in:
committed by
Rossen Stoyanchev
parent
c5878c3824
commit
80b1c27149
@@ -433,7 +433,7 @@ public class BookController {
|
||||
|
||||
@QueryMapping
|
||||
public Window<Book> books(ScrollSubrange subrange) {
|
||||
ScrollPosition position = subrange.position().orElse(OffsetScrollPosition.initial())
|
||||
ScrollPosition position = subrange.position().orElse(ScrollPosition.offset());
|
||||
int count = subrange.count().orElse(20);
|
||||
// ...
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user