Skip to content

Commit 4ae71ed

Browse files
committed
fix(UI): prevent some print info containers from having a scrollbar after changing theme
1 parent 49eebb8 commit 4ae71ed

File tree

3 files changed

+2
-0
lines changed

3 files changed

+2
-0
lines changed

src/UI/Widgets/Status/PrintInfo/PrintInfo.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ namespace UI
3939
static int32_t speedColDsc[] = {LV_GRID_CONTENT, LV_GRID_FR(1), LV_GRID_TEMPLATE_LAST};
4040
static int32_t speedRowDsc[] = {LV_GRID_CONTENT, LV_GRID_CONTENT, LV_GRID_TEMPLATE_LAST};
4141
m_speedCont.setHeight(LV_SIZE_CONTENT);
42+
m_speedCont.setFlag(LV_OBJ_FLAG_SCROLLABLE, false);
4243
m_speedCont.setGridDsc(speedColDsc, speedRowDsc);
4344
m_speedCont.setGridCell(m_speedHeader, LV_GRID_ALIGN_STRETCH, 0, 2, LV_GRID_ALIGN_START, 0, 1);
4445
m_speedCont.setGridCell(m_speedMultiplier, LV_GRID_ALIGN_CENTER, 0, 1, LV_GRID_ALIGN_CENTER, 1, 1);
@@ -74,6 +75,7 @@ namespace UI
7475
static int32_t flowColDsc[] = {LV_GRID_CONTENT, LV_GRID_FR(1), LV_GRID_TEMPLATE_LAST};
7576
static int32_t flowRowDsc[] = {LV_GRID_CONTENT, LV_GRID_CONTENT, LV_GRID_TEMPLATE_LAST};
7677
m_flowCont.setHeight(LV_SIZE_CONTENT);
78+
m_flowCont.setFlag(LV_OBJ_FLAG_SCROLLABLE, false);
7779
m_flowCont.setGridDsc(flowColDsc, flowRowDsc);
7880
m_flowCont.setGridCell(m_flowHeader, LV_GRID_ALIGN_STRETCH, 0, 2, LV_GRID_ALIGN_START, 0, 1);
7981
m_flowCont.setGridCell(m_flowMultiplier, LV_GRID_ALIGN_CENTER, 0, 1, LV_GRID_ALIGN_CENTER, 1, 1);
-104 Bytes
Loading
-226 Bytes
Loading

0 commit comments

Comments
 (0)