mirror of
https://github.com/nicbarker/clay.git
synced 2025-09-18 04:26:18 +00:00
[Documentation] Fix README typo, bump version number to 0.14
This commit is contained in:
parent
58491394ca
commit
8bbe14fbcc
|
@ -360,11 +360,11 @@ Clay_UpdateScrollContainers(
|
||||||
);
|
);
|
||||||
// ...
|
// ...
|
||||||
// Clay internally tracks the scroll containers offset, and Clay_GetScrollOffset returns the x,y offset of the currently open element
|
// Clay internally tracks the scroll containers offset, and Clay_GetScrollOffset returns the x,y offset of the currently open element
|
||||||
CLAY({ .clip = vertical, .childOffset = Clay_GetScrollOffset() }) {
|
CLAY({ .clip = { .vertical = true, .childOffset = Clay_GetScrollOffset() } }) {
|
||||||
// Scrolling contents
|
// Scrolling contents
|
||||||
}
|
}
|
||||||
// .childOffset can be provided directly if you would prefer to manage scrolling outside of clay
|
// .childOffset can be provided directly if you would prefer to manage scrolling outside of clay
|
||||||
CLAY({ .clip = vertical, .childOffset = myData.scrollContainer.offset }) {
|
CLAY({ .clip = { .vertical = true, .childOffset = myData.scrollContainer.offset } }) {
|
||||||
// Scrolling contents
|
// Scrolling contents
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue