Skip to content

Commit

Permalink
Make sure the macro name doesn't overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
suchmememanyskill committed Nov 23, 2023
1 parent cb47286 commit 84662a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CYD-Klipper/src/ui/panels/macros_panel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ void create_macro_widget(const char* macro, lv_obj_t* root_panel){
lv_obj_t * label = lv_label_create(panel);
lv_label_set_text(label, macro);
lv_obj_align(label, LV_ALIGN_LEFT_MID, 0, 0);
lv_label_set_long_mode(label, LV_LABEL_LONG_SCROLL_CIRCULAR);
lv_obj_set_width(label, (TFT_HEIGHT - 40) * 0.75f);

lv_obj_t * btn = lv_btn_create(panel);
lv_obj_align(btn, LV_ALIGN_RIGHT_MID, 0, 0);
Expand Down

0 comments on commit 84662a8

Please sign in to comment.