mirror of
https://gitee.com/openharmony/applications_photos
synced 2024-12-04 21:36:27 +00:00
照片页、相册页每行显示个数错误修复
Signed-off-by: zhouwenjun1031 <zhouwenjun6@huawei.com>
This commit is contained in:
parent
bc287a5870
commit
6e9ceb1aae
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user