diff options
Diffstat (limited to 'src/ui/listwidget.c')
-rw-r--r-- | src/ui/listwidget.c | 8 |
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 | ||
138 | void setItemHeight_ListWidget(iListWidget *d, int itemHeight) { | 138 | void 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 | ||
146 | int scrollBarWidth_ListWidget(const iListWidget *d) { | 148 | int scrollBarWidth_ListWidget(const iListWidget *d) { |