From 956baf21361868093851351be4a09c84df2d5125 Mon Sep 17 00:00:00 2001 From: kokekanon <114332266+kokekanon@users.noreply.github.com> Date: Sat, 19 Oct 2024 21:30:01 -0300 Subject: [PATCH] fix #939 --- src/framework/ui/uigridlayout.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/framework/ui/uigridlayout.h b/src/framework/ui/uigridlayout.h index 80cd7a5aba..facd2285db 100644 --- a/src/framework/ui/uigridlayout.h +++ b/src/framework/ui/uigridlayout.h @@ -39,7 +39,7 @@ class UIGridLayout : public UILayout void setCellHeight(int height) { m_cellSize.setHeight(height); update(); } void setCellSpacing(uint8_t spacing) { m_cellSpacing = spacing; update(); } void setNumColumns(uint8_t columns) { m_numColumns = columns; update(); } - void setNumLines(uint8_t lines) { m_numLines = lines; update(); } + void setNumLines(uint16_t lines) { m_numLines = lines; update(); } void setAutoSpacing(bool enable) { m_autoSpacing = enable; update(); } void setFitChildren(bool enable) { m_fitChildren = enable; update(); } void setFlow(bool enable) { m_flow = enable; update(); } @@ -47,7 +47,7 @@ class UIGridLayout : public UILayout Size getCellSize() { return m_cellSize; } uint8_t getCellSpacing() { return m_cellSpacing; } uint8_t getNumColumns() { return m_numColumns; } - uint8_t getNumLines() { return m_numLines; } + uint16_t getNumLines() { return m_numLines; } bool isUIGridLayout() override { return true; } @@ -58,7 +58,7 @@ class UIGridLayout : public UILayout Size m_cellSize{ 16 }; uint8_t m_cellSpacing{ 0 }; uint8_t m_numColumns{ 1 }; - uint8_t m_numLines{ 0 }; + uint16_t m_numLines{ 0 }; bool m_autoSpacing{ false }; bool m_fitChildren{ false }; bool m_flow{ false };