form field: add SCROLL_ON_FOCUS

Fixes issue with choices not triggering scroll on focus.
This commit is contained in:
Raphael Coeffic
2022-06-11 15:13:11 +02:00
committed by Raphael Coeffic
parent a7ee9d3a81
commit 4ecedab3c8
2 changed files with 1 additions and 2 deletions
+1
View File
@@ -28,6 +28,7 @@ FormField::FormField(Window* parent, const rect_t& rect,
LvglCreate objConstruct) :
Window(parent, rect, windowFlags, textFlags, objConstruct)
{
lv_obj_add_flag(lvobj, LV_OBJ_FLAG_SCROLL_ON_FOCUS);
}
void FormField::setEditMode(bool newEditMode)
-2
View File
@@ -84,8 +84,6 @@ class FormGroup : public Window
class Line : public Window
{
FlexGridLayout *layout;
FormGroup *group;
void construct();
public: