diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-05-11 20:52:10 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-05-11 20:52:10 (GMT) |
| commit | 1d0023b502563d486a6e8c5d6dffbfdcd4e94c2a (patch) | |
| tree | 0a2f91601b9530624a397bf2fde7aa851c3e639d /src/displayapp/screens/Steps.cpp | |
| parent | 786ff1312a8c2afc3d2cf5aab320b6416d727734 (diff) | |
Use nullptr when aligning relative to parent
Diffstat (limited to 'src/displayapp/screens/Steps.cpp')
| -rw-r--r-- | src/displayapp/screens/Steps.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/displayapp/screens/Steps.cpp b/src/displayapp/screens/Steps.cpp index d23e221..1c2d930 100644 --- a/src/displayapp/screens/Steps.cpp +++ b/src/displayapp/screens/Steps.cpp @@ -59,7 +59,7 @@ Steps::Steps(Pinetime::Applications::DisplayApp* app, lv_obj_set_event_cb(resetBtn, lap_event_handler); lv_obj_set_height(resetBtn, 50); lv_obj_set_width(resetBtn, 115); - lv_obj_align(resetBtn, lv_scr_act(), LV_ALIGN_IN_BOTTOM_MID, 0, 0); + lv_obj_align(resetBtn, nullptr, LV_ALIGN_IN_BOTTOM_MID, 0, 0); resetButtonLabel = lv_label_create(resetBtn, nullptr); lv_label_set_text_static(resetButtonLabel, "Reset"); |
