@netless/window-manager 0.4.33 → 0.4.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netless/window-manager",
3
- "version": "0.4.33",
3
+ "version": "0.4.34",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
@@ -204,6 +204,10 @@ export class AppProxy implements PageRemoveService {
204
204
  });
205
205
  if (this.isAddApp && this.box) {
206
206
  this.store.updateAppState(appId, AppAttributes.ZIndex, this.box.zIndex);
207
+ this.store.updateAppState(appId, AppAttributes.Size, {
208
+ width: this.box.intrinsicWidth,
209
+ height: this.box.intrinsicHeight
210
+ });
207
211
  this.boxManager.focusBox({ appId }, false);
208
212
  }
209
213
  } catch (error: any) {
package/src/AppManager.ts CHANGED
@@ -785,6 +785,7 @@ export class AppManager {
785
785
  }
786
786
 
787
787
  public async onReconnected() {
788
+ this.attributesUpdateCallback(this.attributes.apps);
788
789
  const appProxies = Array.from(this.appProxies.values());
789
790
  const reconnected = appProxies.map(appProxy => {
790
791
  return appProxy.onReconnected();