We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLAY_SIZING_GROW() or CLAY_SIZING_GROW({}),`are not working as expected, grow to the full size of parent container / screen.
CLAY_SIZING_GROW()
CLAY_SIZING_GROW({})
here is the code:
Clay_RenderCommandArray CreateLayout() { Clay_BeginLayout(); CLAY( CLAY_RECTANGLE({ .color = {255, 0, 0, 255} }), CLAY_LAYOUT({ .sizing = { .width = CLAY_SIZING_GROW(), .height = CLAY_SIZING_GROW(), } }) ) {}; return Clay_EndLayout(); } void UpdateDrawFrame(void) { Clay_RenderCommandArray renderCommands = CreateLayout(); /* BEGIN RENDERER */ BeginDrawing(); ClearBackground(BLACK); Clay_Raylib_Render(renderCommands); EndDrawing(); /* END RENDERER */ }
Output:
It should create a RED tainted window as of in the demo video: https://youtu.be/DYWTw19_8r4?si=Y2OoF5lRb-gkYXRB&t=1128 or like the screenshot below:
the current work-around is to call GetScreenWidth(), and GetScreenHeight() from RayLib (or the equivalent of your renderer).
GetScreenWidth()
GetScreenHeight()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
CLAY_SIZING_GROW()
orCLAY_SIZING_GROW({})
,`are not working as expected, grow to the full size of parent container / screen.here is the code:
Output:
It should create a RED tainted window as of in the demo video: https://youtu.be/DYWTw19_8r4?si=Y2OoF5lRb-gkYXRB&t=1128 or like the screenshot below:
the current work-around is to call
GetScreenWidth()
, andGetScreenHeight()
from RayLib (or the equivalent of your renderer).The text was updated successfully, but these errors were encountered: