Skip to content

Commit 62868a0

Browse files
authored
fix(style): LV_STYLE_PAD_GAP needs STYLE_TYPE_SPECIAL (#77)
LV_STYLE_PAD_GAP is a fake style ID just like other LV_STYLE_PAD_ALL etc. that combines several styles to a convenient 'style', thus it needs special handling.
1 parent 4b62781 commit 62868a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/style.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static const struct style_map_s {
6868
{"pad_right", LV_STYLE_PAD_RIGHT, STYLE_TYPE_INT },
6969
{"pad_row", LV_STYLE_PAD_ROW, STYLE_TYPE_INT },
7070
{"pad_column", LV_STYLE_PAD_COLUMN, STYLE_TYPE_INT },
71-
{"pad_gap", LV_STYLE_PAD_GAP, STYLE_TYPE_INT },
71+
{"pad_gap", LV_STYLE_PAD_GAP, STYLE_TYPE_SPECIAL | STYLE_TYPE_INT },
7272
{"bg_color", LV_STYLE_BG_COLOR, STYLE_TYPE_COLOR },
7373
{"bg_opa", LV_STYLE_BG_OPA, STYLE_TYPE_INT },
7474
{"bg_grad_color", LV_STYLE_BG_GRAD_COLOR, STYLE_TYPE_COLOR },

0 commit comments

Comments
 (0)