mirror of
https://gitee.com/openharmony/applications_systemui
synced 2025-01-07 16:40:36 +00:00
!167 Status bar distance left layout optimization
Merge pull request !167 from lijinfengde123/master
This commit is contained in:
commit
2f1dbb2314
@ -80,6 +80,7 @@ export default struct StatusBarComponent {
|
||||
mAlignItems: HorizontalAlign.End
|
||||
})
|
||||
}
|
||||
.padding({ left: $r('sys.float.ohos_id_max_padding_start'), right: $r('sys.float.ohos_id_max_padding_end') })
|
||||
.width('100%')
|
||||
.height('100%')
|
||||
} else {
|
||||
@ -350,4 +351,4 @@ struct StatusBarNotificationIcon {
|
||||
}
|
||||
.height('100%')
|
||||
}
|
||||
}
|
||||
}
|
@ -108,8 +108,6 @@ struct Index {
|
||||
.width('100%')
|
||||
.height('100%')
|
||||
.constraintSize({ minHeight: this.StatusMinH })
|
||||
.padding(this.mStatusBarData.showHorizontal ?
|
||||
{ left: $r('sys.float.ohos_id_max_padding_start'), right: $r('sys.float.ohos_id_max_padding_end') } : { left: '0'})
|
||||
.onAreaChange((e, e2) => {
|
||||
Log.showInfo(TAG, `onAreaChange, e: ${JSON.stringify(e)} e2: ${JSON.stringify(e2)}`);
|
||||
})
|
||||
@ -117,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
|
||||
@ -169,4 +167,4 @@ struct Index {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user