Skip to content

Commit

Permalink
Merge pull request lvgl#1104 from C47D/fix_group_wrap
Browse files Browse the repository at this point in the history
[lv_group - v5.3] Init wrap on group creation and fix documentation of wrap setter
  • Loading branch information
kisvegabor authored Jun 18, 2019
2 parents 4139cd6 + 648e2c4 commit 22e8ec2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lv_core/lv_group.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ lv_group_t * lv_group_create(void)
group->focus_cb = NULL;
group->click_focus = 1;
group->editing = 0;
group->wrap = 1;

return group;
}
Expand Down Expand Up @@ -366,7 +367,7 @@ static void lv_group_refocus(lv_group_t *g) {
/**
* Set whether focus next/prev will allow wrapping from first->last or last->first.
* @param group pointer to group
* @param en: true: enable `click_focus`
* @param en: true: enable `wrap`
*/
void lv_group_set_wrap(lv_group_t * group, bool en)
{
Expand Down

0 comments on commit 22e8ec2

Please sign in to comment.