mirror of
https://github.com/openharmony/applications_systemui.git
synced 2026-07-19 19:44:41 -04:00
Status bar distance left layout optimization
Signed-off-by: lijinfengde123 <lijinfeng26@huawei.com>
This commit is contained in:
@@ -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%')
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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 {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user