summaryrefslogtreecommitdiff
path: root/src/ui/listwidget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/listwidget.c')
-rw-r--r--src/ui/listwidget.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ui/listwidget.c b/src/ui/listwidget.c
index 28a19b9c..d31ac2f5 100644
--- a/src/ui/listwidget.c
+++ b/src/ui/listwidget.c
@@ -136,11 +136,13 @@ void updateVisible_ListWidget(iListWidget *d) {
136} 136}
137 137
138void setItemHeight_ListWidget(iListWidget *d, int itemHeight) { 138void setItemHeight_ListWidget(iListWidget *d, int itemHeight) {
139 d->itemHeight = itemHeight;
140 if (deviceType_App() != desktop_AppDeviceType) { 139 if (deviceType_App() != desktop_AppDeviceType) {
141 d->itemHeight += 1.5 * gap_UI; 140 itemHeight += 1.5 * gap_UI;
141 }
142 if (d->itemHeight != itemHeight) {
143 d->itemHeight = itemHeight;
144 invalidate_ListWidget(d);
142 } 145 }
143 invalidate_ListWidget(d);
144} 146}
145 147
146int scrollBarWidth_ListWidget(const iListWidget *d) { 148int scrollBarWidth_ListWidget(const iListWidget *d) {