When displaying the border of the checkbox, try to modify the width of the checkbox, but it does not work

Important: unclear posts may not receive useful answers.

Before posting

  • Get familiar with Markdown to format and structure your post
  • Be sure to update lvgl from the latest version from the master branch.
  • Be sure you have checked the relevant part of the documentation.
  • If applicable use the Simulator to eliminate hardware related issues.

Delete this section if you read and applied the mentioned points.

Description

When displaying the border of the checkbox, try to modify the width of the checkbox, but it does not work.

What MCU/Processor/Board and compiler are you using?

stm32

What LVGL version are you using?

V8.1.0

What do you want to achieve?

Display the borders of different checkboxes by modifying the width of the checkbox

What have you tried so far?

Code to reproduce

Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.

The code block(s) should be formatted like:

/*You code here*/

Screenshot and/or video

If possible, add screenshots and/or videos about the current state.

It works well for me:

  lv_obj_t * obj = lv_checkbox_create(lv_scr_act());
  lv_obj_set_style_border_width(obj, 2, 0);
  lv_obj_set_width(obj, 300);

image