Fixed more issues with grid and scroll area

This commit is contained in:
Yousef Khadadeh 2026-04-19 13:37:16 +03:00
parent 0853df4d2a
commit 4e1ab6fc50
6 changed files with 9 additions and 29 deletions

View file

@ -23,19 +23,11 @@ void FileSelectScreen::gui_layout_run() {
},
}) {
text_label(gui, "Test grid");
//scroll_area_many_entries(gui, "Test scroll", ScrollBarManyEntriesOptions{
// .entryHeight = 100.0f,
// .entryCount = 2000,
// .clipHorizontal = true,
// .elementContent = [&] (size_t i) {
// text_button_sized(gui, "button", "Square " + std::to_string(i), CLAY_SIZING_GROW(0), CLAY_SIZING_GROW(0));
// }
//});
gui.element<GridScrollArea>("Test grid", GridScrollArea::Options{
.entryMaximumWidth = 100.0f,
.childAlignmentX = CLAY_ALIGN_X_LEFT,
.entryHeight = 100.0f,
.entryCount = 200,
.entryCount = 20000,
.elementContent = [&](size_t i) {
CLAY_AUTO_ID({
.layout = {