lv_cont: improve fit with TIGHT, FLOOD, FILL

This commit is contained in:
Gabor Kiss-Vamosi
2019-02-24 06:24:36 +01:00
parent 8581a249bd
commit 285ff7d3b4
18 changed files with 388 additions and 151 deletions

View File

@@ -91,7 +91,7 @@ lv_obj_t * lv_tileview_create(lv_obj_t * par, const lv_obj_t * copy)
if(copy == NULL) {
lv_obj_set_size(new_tileview, LV_HOR_RES, LV_VER_RES);
lv_obj_set_drag_throw(lv_page_get_scrl(new_tileview), false);
lv_page_set_scrl_fit(new_tileview, true, true);
lv_page_set_scrl_fit(new_tileview, LV_FIT_TIGHT);
/*Set the default styles*/
lv_theme_t * th = lv_theme_get_current();
if(th) {