Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ui/QuestionCard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ void QuestionCard::startScrolling()
lv_coord_t cont_h = lv_obj_get_height(_cont);

/* include vertical padding */
lv_coord_t pad_top = lv_obj_get_style_pad_top (_cont, 0);
lv_coord_t pad_bottom = lv_obj_get_style_pad_bottom(_cont, 0);
lv_coord_t pad_top = lv_obj_get_style_pad_top (_cont, LV_PART_MAIN);
lv_coord_t pad_bottom = lv_obj_get_style_pad_bottom(_cont, LV_PART_MAIN);

lv_coord_t distance = label_h + pad_top + pad_bottom - cont_h;
if (distance <= 0) return; // no scrolling needed
Expand Down