Add scroll bar to menus where needed (#85)

This commit is contained in:
philmoz
2023-03-22 19:42:13 +10:00
committed by GitHub
parent e67d1a7895
commit 3e49724e11
+2
View File
@@ -80,6 +80,8 @@ MenuBody::MenuBody(Window * parent, const rect_t & rect):
{
// Allow encoder acceleration
lv_obj_add_flag(lvobj, LV_OBJ_FLAG_ENCODER_ACCEL);
// Add scroll bar if needed
lv_obj_set_scrollbar_mode(lvobj, LV_SCROLLBAR_MODE_AUTO);
setColumnCount(1);
setColumnWidth(0, rect.w);