Skip to content

Commit

Permalink
fix mehah#939
Browse files Browse the repository at this point in the history
  • Loading branch information
kokekanon committed Oct 20, 2024
1 parent f02bd7e commit 956baf2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/framework/ui/uigridlayout.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ 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(); }

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; }

Expand All @@ -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 };
Expand Down

0 comments on commit 956baf2

Please sign in to comment.