Skip to content

Commit 80b1c27

Browse files
nilshartmannrstoyanchev
authored andcommitted
Use ScrollPosition.offset() to get initial scroll position
1 parent c5878c3 commit 80b1c27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-graphql-docs/modules/ROOT/pages/controllers.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ public class BookController {
433433
434434
@QueryMapping
435435
public Window<Book> books(ScrollSubrange subrange) {
436-
ScrollPosition position = subrange.position().orElse(OffsetScrollPosition.initial())
436+
ScrollPosition position = subrange.position().orElse(ScrollPosition.offset());
437437
int count = subrange.count().orElse(20);
438438
// ...
439439
}

0 commit comments

Comments
 (0)