Fix lv_cont_get_fit_height using width instead

Reported in #1075
This commit is contained in:
embeddedt 2019-05-21 09:52:18 -04:00 committed by GitHub
parent d658eef2a0
commit 037e828c8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -210,7 +210,7 @@ lv_coord_t lv_cont_get_fit_height(lv_obj_t * cont)
{
lv_style_t * style = lv_cont_get_style(cont);
return lv_obj_get_width(cont) - 2 * style->body.padding.hor;
return lv_obj_get_height(cont) - 2 * style->body.padding.ver;
}
/**********************