fix SYMBOL_DOWN

This commit is contained in:
Brian Pugh
2019-01-10 23:11:48 -08:00
parent 1468da5c33
commit d25f0db948

View File

@@ -580,7 +580,7 @@ static bool lv_ddlist_design(lv_obj_t * ddlist, const lv_area_t * mask, lv_desig
new_style.text.opa = sel_style->text.opa; new_style.text.opa = sel_style->text.opa;
lv_area_t area_arrow; lv_area_t area_arrow;
area_arrow.x2 = ddlist->coords.x2 - style->body.padding.hor; area_arrow.x2 = ddlist->coords.x2 - style->body.padding.hor;
area_arrow.x1 = area_arrow.x2 - lv_txt_get_width(strlen(SYMBOL_DOWN), 1, sel_style->text.font, 0, 0); area_arrow.x1 = area_arrow.x2 - lv_txt_get_width(SYMBOL_DOWN, (strlen(SYMBOL_DOWN), sel_style->text.font, 0, 0);
area_arrow.y1 = ddlist->coords.y1 + style->text.line_space; area_arrow.y1 = ddlist->coords.y1 + style->text.line_space;
area_arrow.y2 = area_arrow.y1 + font_h; area_arrow.y2 = area_arrow.y1 + font_h;