Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bar rotates automatically to horizontally if width>heigth #6172

Open
FloHomi opened this issue May 2, 2024 · 3 comments
Open

Bar rotates automatically to horizontally if width>heigth #6172

FloHomi opened this issue May 2, 2024 · 3 comments

Comments

@FloHomi
Copy link

FloHomi commented May 2, 2024

LVGL version

V9.1.1

What happened?

Bar rotates automatically to horizontally if width>heigth
This should be a setting. User can not create a "FAT" bar.
Unbenannt

How to reproduce?

lv_obj_t* bar = lv_bar_create(water_cont);
lv_obj_set_size(bar, 200, 100);
@kisvegabor
Copy link
Member

You are right! I think there should be a function like lv_bar_set_orientation(bar, LV_BAR_ORIENTATION_HORIZONTAL/VERTICAL/AUTO)

Do you have time to contribute with this feature?

@liamHowatt
Copy link
Collaborator

@FloHomi you can test out @TridentTD's PR #6212 for your use case and provide feedback if you want, before it gets merged.

@FloHomi
Copy link
Author

FloHomi commented May 13, 2024

Hi,
this looks great! Thank you :-) Taking some days off and all done already^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants