照片页、相册页每行显示个数错误修复

Signed-off-by: zhouwenjun1031 <zhouwenjun6@huawei.com>
This commit is contained in:
zhouwenjun1031 2024-01-16 16:07:50 +08:00
parent bc287a5870
commit 6e9ceb1aae

View File

@ -232,7 +232,14 @@ export class ScreenManager {
}
this.onWinSizeChanged(data);
})
this.onWinSizeChanged(this.getWinRect());
if (!this.isUIExtensionEnv()) {
this.mainWindow?.getProperties().then((prop: window.WindowProperties) => {
Log.info(TAG, `Window prop: ${JSON.stringify(prop)}`);
this.onWinSizeChanged(prop.windowRect);
});
} else {
this.onWinSizeChanged(this.getWinRect());
}
}
destroyMainWindow(): void {