From 80b1c27149359ea293b922a99d5e5c19b13f7aeb Mon Sep 17 00:00:00 2001 From: Nils Hartmann Date: Tue, 17 Oct 2023 13:17:28 +0200 Subject: [PATCH] Use ScrollPosition.offset() to get initial scroll position --- spring-graphql-docs/modules/ROOT/pages/controllers.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-graphql-docs/modules/ROOT/pages/controllers.adoc b/spring-graphql-docs/modules/ROOT/pages/controllers.adoc index 754f3417..07dd9804 100644 --- a/spring-graphql-docs/modules/ROOT/pages/controllers.adoc +++ b/spring-graphql-docs/modules/ROOT/pages/controllers.adoc @@ -433,7 +433,7 @@ public class BookController { @QueryMapping public Window books(ScrollSubrange subrange) { - ScrollPosition position = subrange.position().orElse(OffsetScrollPosition.initial()) + ScrollPosition position = subrange.position().orElse(ScrollPosition.offset()); int count = subrange.count().orElse(20); // ... }