修复导航栏异常显示

Signed-off-by: yongxinggong <gongyongxing@huawei.com>
This commit is contained in:
yongxinggong 2022-09-28 12:01:22 +08:00
parent cd0c13e004
commit 3d27298ff3
2 changed files with 13 additions and 13 deletions

View File

@ -197,15 +197,6 @@ struct EntryView {
.alignItems(HorizontalAlign.Center)
.justifyContent(FlexAlign.Center)
.height(this.workSpaceHeight)
Column() {
SmartDock({
showAppCenter: () => {
Trace.start(Trace.CORE_METHOD_START_APP_CENTER);
globalThis.createWindowWithName(windowManager.APP_CENTER_WINDOW_NAME, windowManager.DESKTOP_RANK);
}
});
}
.onAreaChange((oldValue: Area, newValue: Area) => {
Log.showDebug(TAG, `onAreaChange navigationBarStatus: ${this.navigationBarStatus}`);
if (JSON.stringify(oldValue) == JSON.stringify(newValue)) return;
@ -215,6 +206,15 @@ struct EntryView {
}, 30);
}
})
Column() {
SmartDock({
showAppCenter: () => {
Trace.start(Trace.CORE_METHOD_START_APP_CENTER);
globalThis.createWindowWithName(windowManager.APP_CENTER_WINDOW_NAME, windowManager.DESKTOP_RANK);
}
});
}
.height(this.dockHeight)
}
.width('100%')

View File

@ -132,10 +132,6 @@ struct EntryView {
PageDesktopLayout();
}
.height(this.workSpaceHeight)
Column() {
SmartDock();
}
.onAreaChange((oldValue: Area, newValue: Area): void => {
Log.showDebug(TAG, `onAreaChange navigationBarStatus: ${this.navigationBarStatus}`);
if (JSON.stringify(oldValue) == JSON.stringify(newValue)) return;
@ -145,6 +141,10 @@ struct EntryView {
}, 50)
}
})
Column() {
SmartDock();
}
.height(this.dockHeight)
}