mirror of
https://github.com/nicbarker/clay.git
synced 2026-02-06 12:48:49 +00:00
[Core] Fix a bug with the implementation of clip .childOffset
This commit is contained in:
parent
ea8288158e
commit
90b45f059c
2 changed files with 3 additions and 9 deletions
|
|
@ -127,7 +127,7 @@ Clay_RenderCommandArray CreateLayout(void) {
|
|||
.attachTo = CLAY_ATTACH_TO_ELEMENT_WITH_ID,
|
||||
.offset = { .y = -(scrollData.scrollPosition->y / scrollData.contentDimensions.height) * scrollData.scrollContainerDimensions.height },
|
||||
.zIndex = 1,
|
||||
.parentId = 55,
|
||||
.parentId = Clay_GetElementId(CLAY_STRING("MainContent")).id,
|
||||
.attachPoints = { .element = CLAY_ATTACH_POINT_RIGHT_TOP, .parent = CLAY_ATTACH_POINT_RIGHT_TOP }
|
||||
}
|
||||
}) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue