refactor: Rename prop scrollToCenter and setScrollToCenter to scrollToContent and setScrollToContent respectively (#3261)

* refactor: Rename prop scrollToCenter and setScrollToCenter to scrollToContent and setScrollToContent respectively

* fix

* update changelog/readme

* fix
This commit is contained in:
Aakansha Doshi 2021-03-16 23:02:17 +05:30 committed by GitHub
parent e90e56452f
commit 052b73d95b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 16 additions and 14 deletions

View file

@ -6,7 +6,7 @@ import { API } from "./helpers/api";
const { h } = window;
describe("appState", () => {
it("scroll-to-center on init works with non-zero offsets", async () => {
it("scroll-to-content on init works with non-zero offsets", async () => {
const WIDTH = 600;
const HEIGHT = 700;
const OFFSET_LEFT = 200;
@ -30,7 +30,7 @@ describe("appState", () => {
height: ELEM_HEIGHT,
}),
],
scrollToCenter: true,
scrollToContent: true,
}}
/>,
);