diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-05-12 04:18:02 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-05-12 04:18:02 (GMT) |
| commit | 6e9eafeba44fd0e698cf288704a5eb2fc6bd76aa (patch) | |
| tree | 7d98fb3cbcaa05cf02585481c8e822005093c41f /src/displayapp/screens/Timer.cpp | |
| parent | 6c3268c24be4555b68d4fd4e4bf488d5fce1369c (diff) | |
Use nullptr when aligning relative to parent
Diffstat (limited to 'src/displayapp/screens/Timer.cpp')
| -rw-r--r-- | src/displayapp/screens/Timer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/displayapp/screens/Timer.cpp b/src/displayapp/screens/Timer.cpp index 5cd496c..2427320 100644 --- a/src/displayapp/screens/Timer.cpp +++ b/src/displayapp/screens/Timer.cpp @@ -69,7 +69,7 @@ Timer::Timer(DisplayApp* app, Controllers::TimerController& timerController) btnPlayPause = lv_btn_create(lv_scr_act(), nullptr); btnPlayPause->user_data = this; lv_obj_set_event_cb(btnPlayPause, btnEventHandler); - lv_obj_align(btnPlayPause, lv_scr_act(), LV_ALIGN_IN_BOTTOM_MID, 0, -10); + lv_obj_align(btnPlayPause, nullptr, LV_ALIGN_IN_BOTTOM_MID, 0, -10); lv_obj_set_height(btnPlayPause, 40); txtPlayPause = lv_label_create(btnPlayPause, nullptr); if (timerController.IsRunning()) { |
