From 008158405178ef780faa68da3f0bba92c2e45d2c Mon Sep 17 00:00:00 2001 From: lijinfengde123 Date: Tue, 21 Jun 2022 09:09:08 +0800 Subject: [PATCH] Status bar distance left layout optimization Signed-off-by: lijinfengde123 --- .../src/main/ets/com/ohos/pages/StatusBarComponent.ets | 3 +-- product/phone/statusbar/src/main/ets/pages/index.ets | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/features/statusbarcomponent/src/main/ets/com/ohos/pages/StatusBarComponent.ets b/features/statusbarcomponent/src/main/ets/com/ohos/pages/StatusBarComponent.ets index 680d0380..e87e56fc 100644 --- a/features/statusbarcomponent/src/main/ets/com/ohos/pages/StatusBarComponent.ets +++ b/features/statusbarcomponent/src/main/ets/com/ohos/pages/StatusBarComponent.ets @@ -69,7 +69,6 @@ export default struct StatusBarComponent { mLayoutWeight: 1, mAlignItems: HorizontalAlign.Start }) - StatusBarGroup({ mComponents: this.mStatusBarLayout[1], mLayoutWeight: 0, @@ -353,4 +352,4 @@ struct StatusBarNotificationIcon { } .height('100%') } -} +} \ No newline at end of file diff --git a/product/phone/statusbar/src/main/ets/pages/index.ets b/product/phone/statusbar/src/main/ets/pages/index.ets index f62d95e7..b58a2e3c 100644 --- a/product/phone/statusbar/src/main/ets/pages/index.ets +++ b/product/phone/statusbar/src/main/ets/pages/index.ets @@ -115,11 +115,11 @@ struct Index { touchEvent(event: TouchEvent) { Trace.start(Trace.CORE_METHOD_START_TOUCHEVENT) - Log.showDebug(TAG, 'touchEvent================' + event.touches) + Log.showDebug(TAG, 'touchEvent' + event.touches) if (event.type == Constants.TOUCHTYPE_DOWN) { //down this.startX = event.touches[0].screenX this.startY = event.touches[0].screenY - Log.showInfo(TAG, `touchStart=======startX: ${this.startX}, startY: ${this.startY}`) + Log.showInfo(TAG, `touchStart, startX: ${this.startX}, startY: ${this.startY}`) } else if (event.type == Constants.TOUCHTYPE_MOVE) { //move this.moveX = event.touches[0].screenX - this.startX this.moveY = event.touches[0].screenY - this.startY @@ -167,4 +167,4 @@ struct Index { } } } -} +} \ No newline at end of file