lvgl icon indicating copy to clipboard operation
lvgl copied to clipboard

[Draft] Permanently align/anchor 2 objects (w/o parent-child relationship)

Open valeriosetti opened this issue 2 years ago • 4 comments

Description of the feature or fix

When an object is aligned with align_to() then if the reference if moved, the aligned object will follow.

This PR also add an example making use of this feature: 1 parent object is created together with 3 followers. Then the parent is moved up & down on the screen and the followers follow it.

I marked as draft because this is my very first PR in LVGL so I would like to know whether this PR is moving in the right direction or not according to what it has been required in #5665.

Resolves #5665

valeriosetti avatar Apr 02 '24 14:04 valeriosetti

@valeriosetti Thank you for sharing your implementation. It's definitely a possible solution, however for complex features like this it'd be useful to have an issue first to discuss all the options and trade-offs.

So could you open a new Feature planning issue?

kisvegabor avatar Apr 04 '24 21:04 kisvegabor

Thanks @liamHowatt for your review! I will start addressing comments. @kisvegabor thanks for the feedback. I thought that #5665 (linked in the description) was enough for this. Should I open a new one?

valeriosetti avatar Apr 05 '24 07:04 valeriosetti

My closing though in #5665 was

Sorry, for mentioning only problems, however these are the main concerns why it is not implemented yet. I hope that we can figure out something together.

So I think it requires a deeper investigation to discover all options. Maybe we will find a completely different approach if we dive deeper.

Should I open a new one?

Yes, please.

kisvegabor avatar Apr 05 '24 17:04 kisvegabor

We need some feedback on this pull request.

Now we mark this as "stale" because there was no activity here for 14 days.

Remove the "stale" label or comment else this will be closed in 7 days.

lvgl-bot avatar Apr 21 '24 01:04 lvgl-bot