修复血氧界面的滑动问题
authorCaisking <Casiking@zhihuishixun.com>
Wed, 21 Jan 2026 08:02:01 +0000 (16:02 +0800)
committerCaisking <Casiking@zhihuishixun.com>
Wed, 21 Jan 2026 08:02:01 +0000 (16:02 +0800)
code/sdk/application/wearable/fd272/nativeapp/nativeui/bloodoxygen/src/BloodResultView.cpp

index e5d11d0..f44a4a7 100644 (file)
@@ -183,10 +183,9 @@ void BloodResultView::OnStart() {
     WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "scrollView_ new fail");
     return;
   }
-  scrollView_->SetScrollBlankSize(35);
-  scrollView_->SetReboundSize(50);
-  scrollView_->SetPosition(0, 0, Screen::GetInstance().GetWidth(),
-                           Screen::GetInstance().GetHeight());
+  // scrollView_->SetScrollBlankSize(35);
+  // scrollView_->SetReboundSize(50);
+  scrollView_->SetPosition(0, 0, 466, 466);
 
   scrollView_->SetDraggable(true);
   scrollView_->SetStyle(STYLE_BACKGROUND_COLOR, BACK_GROUND_COLOR);
@@ -196,8 +195,7 @@ void BloodResultView::OnStart() {
   scrollView_->SetOnDragListener(listener);
 
   if (!BloodResultViewInit()) {
-    WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP,
-                  "BloodResultView::InitBloodView fail");
+    WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP,  "BloodResultView::InitBloodView fail");
   }
 
   AddViewToRootContainer(scrollView_);