refresh rate for the table and its cells

This commit is contained in:
2025-04-14 22:54:25 +01:00
parent 7d69ffe85c
commit f90199f0f6
2 changed files with 13 additions and 3 deletions
+2 -1
View File
@@ -47,7 +47,7 @@ uint16_t UITable::getContentAreaHeight() {
this->getTitleAreaHeight();
}
/*
/*
* This was hardcoded for the relative and had a warning for that but
* I recon its dynamic enough for now
*/
@@ -59,6 +59,7 @@ void UITable::setup() {
for (int r = 0; r < ROWS; r++) {
int16_t xOffset = this->getContentAreaX0();
for (int c = 0; c < COLUMNS; c++) {
this->tableData[r * COLUMNS + c]->refreshRate = this->refreshRate;
this->tableData[r * COLUMNS + c]->decor->textSize = this->decor->textSize;
this->tableData[r * COLUMNS + c]->decor->hasBorder = false;
this->tableData[r * COLUMNS + c]->dims.x = xOffset + CELL_MARGIN;