[doc] Probably old syntax of btn_set_fit() in Layers example

The example in https://github.com/littlevgl/docs/blob/master/en/overview/layer.md contains:

lv_btn_set_fit(btn1, true, true); /*Enable to automatically set the size according to the content*/

This is not how lv_btn_set_fit() is to be used, so I assume this is an older syntax.

JW

Thanks. It should be fixed here.

Hi embeddedt,

static void lv_btn_set_fit(lv_obj_t *btn, lv_fit_t fit) takes only one LV_FIT_xxx parameter (i.e. two parameters altogether). It would be lv_btn_set_fit2() to take two.

Thanks,

JW

Thanks for the correction.