[Core] Replace .scroll config with .clip (#376)

This commit is contained in:
Nic Barker 2025-05-01 14:11:31 +12:00 committed by GitHub
parent 313964132c
commit 970919e1fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 150 additions and 106 deletions

View file

@ -235,7 +235,7 @@ Clay_RenderCommandArray ClayVideoDemo_CreateLayout(ClayVideoDemo_Data *data) {
CLAY({ .id = CLAY_ID("MainContent"),
.backgroundColor = contentBackgroundColor,
.scroll = { .vertical = true },
.clip = { .vertical = true, .childOffset = Clay_GetScrollOffset() },
.layout = {
.layoutDirection = CLAY_TOP_TO_BOTTOM,
.childGap = 16,