Skip to content

[LVGL] Widget style align moves the widget from its previous location #971

@OdaiJ

Description

@OdaiJ

Describe the bug
If you place a widget, and change its DEFAULT style align to CENTER, the X and Y of the widget stay the same even though the reference has changed - hence causing the widget to move out of its previous location on the screen.

To Reproduce
Steps to reproduce the behavior:

  1. Create an EEZ Studio LVGL 9.2.2 project.
  2. Place any widget, the ones I've tried are the label and the button.
  3. Select the widget and go to its style properties.
  4. Go to "Main part" then to "DEFAULT".
  5. Check "Align" and select "CENTER".
  6. Widget's X and Y remain the same, but the reference has changed - hence causing the widget to move out of its previous location on the screen.

Expected behavior
Upon changing the "Align" and checking it, new X and Y values are calculated so the widget remains in the same screen location.

Desktop (please complete the following information):

  • OS: Windows
  • Version: 11

LVGL version (if used)

  • 9.2.2

Note
I understand this makes sense if you already have X and Y set to 0, but I am unsure if it's worth the inconvenience.

Disclaimer
Please take into account that the tasks reported here will be processed by the Envox team according to the best effort principle, so adjust your expectations accordingly. However, if you want a more prompt and high-quality response as well as direct contact with technical support, you can choose one of our Support plans.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions