Added X scrollbar to scroll area, and added toolbar for phone drawing program
This commit is contained in:
parent
6a05026f85
commit
74bc17f570
11 changed files with 284 additions and 50 deletions
|
|
@ -24,6 +24,7 @@ void GridScrollArea::layout(const Clay_ElementId& id, const Options& o) {
|
|||
size_t entriesPerRow = std::max<size_t>(rowWidth / options.entryWidth, 1);
|
||||
size_t rowCount = (options.entryCount + entriesPerRow - 1) / entriesPerRow;
|
||||
opts.entryCount = rowCount;
|
||||
opts.scrollbar = options.scrollbar;
|
||||
|
||||
uint16_t xPadding = 0;
|
||||
uint16_t xChildGap = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue