-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Problems using LV_OBJ_FLAG_SCROLL_ON_FOCUS #6153
Comments
Hi, Exactly what is not working? Do you add the text area in a scrollable widget and click it or focus it in a group? |
We need some feedback on this issue. 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. |
As there was no activity here for a while we close this issue. But don't worry, the conversation is still here and you can get back to it at any time. So feel free to comment if you have remarks or ideas on this topic. |
Introduce the problem
problems using LV_OBJ_FLAG_SCROLL_ON_FOCUS, I'm trying to auto-scroll objects, but the flag doesn't seem to work: // Create a text area for logging
ui_text_area = lv_textarea_create(ui_pnlMain);
lv_obj_set_x(ui_text_area, 0);
lv_obj_set_y(ui_text_area, lv_pct(15));
lv_obj_set_width(ui_text_area, lv_pct(100));
lv_obj_set_height(ui_text_area, lv_pct(75));
lv_obj_set_align(ui_text_area, LV_ALIGN_TOP_LEFT);
// make object unclickable by input devices
lv_obj_clear_flag(ui_text_area, LV_OBJ_FLAG_CLICKABLE);
//
lv_obj_add_flag(ui_text_area, LV_OBJ_FLAG_SCROLLABLE);
lv_obj_add_flag(ui_text_area, LV_OBJ_FLAG_SCROLL_ON_FOCUS);
Proposal
No response
The text was updated successfully, but these errors were encountered: