From 93b522827cbd79fa194e1c6ad61cb4853d6f4f74 Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Tue, 21 Oct 2025 20:35:49 +0800 Subject: [PATCH] =?utf8?q?=E4=BC=98=E5=8C=96=E5=8E=8B=E5=8A=9B=E9=94=99?= =?utf8?q?=E8=AF=AF=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../fd272/nativeapp/nativeui/stress/include/stressTestModel.h | 2 +- .../fd272/nativeapp/nativeui/stress/src/stressTestFailView.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/code/sdk/application/wearable/fd272/nativeapp/nativeui/stress/include/stressTestModel.h b/code/sdk/application/wearable/fd272/nativeapp/nativeui/stress/include/stressTestModel.h index 29b7ece91..66448e722 100644 --- a/code/sdk/application/wearable/fd272/nativeapp/nativeui/stress/include/stressTestModel.h +++ b/code/sdk/application/wearable/fd272/nativeapp/nativeui/stress/include/stressTestModel.h @@ -26,7 +26,7 @@ namespace OHOS StressTestModel(const StressTestModel &) = delete; StressTestModel &operator=(const StressTestModel &) = delete; uint8_t currentView{0}; - uint8_t currentFailType{FAIL_TYPE_INVALID_DATA};//当前错误类型 + uint8_t currentFailType{FAIL_TYPE_NOT_WORN};//当前错误类型 }; } diff --git a/code/sdk/application/wearable/fd272/nativeapp/nativeui/stress/src/stressTestFailView.cpp b/code/sdk/application/wearable/fd272/nativeapp/nativeui/stress/src/stressTestFailView.cpp index 613088727..ced9dbeb5 100644 --- a/code/sdk/application/wearable/fd272/nativeapp/nativeui/stress/src/stressTestFailView.cpp +++ b/code/sdk/application/wearable/fd272/nativeapp/nativeui/stress/src/stressTestFailView.cpp @@ -50,6 +50,8 @@ namespace OHOS scrollView->SetPosition(0, 0, HORIZONTAL_RESOLUTION, VERTICAL_RESOLUTION); scrollView->SetTouchable(true); scrollView->SetDraggable(true); + scrollView->SetScrollBlankSize(60,UIAbstractScroll::Direction::BOTTOM); + scrollView->SetScrollBlankSize(60,UIAbstractScroll::Direction::TOP); group->Add(scrollView); } if (titleLabel == nullptr) -- 2.17.1