From 7f49cbf97fe7a77d7075c00069bb686b51581bf1 Mon Sep 17 00:00:00 2001 From: Nicklas Ronge Date: Tue, 23 Jun 2020 09:37:04 +0200 Subject: [PATCH] - fixed an issue with the trade window not restoring to it's fully size --- manifest.json | 1 - src/app/modules/trade/service/trade-window.service.ts | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index 15139b61..646170e5 100644 --- a/manifest.json +++ b/manifest.json @@ -146,7 +146,6 @@ "disable_rightclick": true, "transparent": true, "resizable": true, - "override_on_update": true, "size": { "width": 310, "height": 400 diff --git a/src/app/modules/trade/service/trade-window.service.ts b/src/app/modules/trade/service/trade-window.service.ts index d9c08272..562c7a65 100644 --- a/src/app/modules/trade/service/trade-window.service.ts +++ b/src/app/modules/trade/service/trade-window.service.ts @@ -6,6 +6,7 @@ import { ProcessStorageService } from '@app/storage'; import { TradeExchangeMessage } from '@shared/module/poe/trade/chat'; import { Observable } from 'rxjs'; import { TradeFeatureSettings } from '../trade-feature-settings'; +import { flatMap } from 'rxjs/operators'; const WINDOW_DATA_KEY = 'TRADE_WINDOW_DATA'; @@ -39,7 +40,9 @@ export class TradeWindowService { const data = this.data$.get(); data.settings = settings; this.data$.next(data); - return this.window.restore(); + return this.window.restore().pipe( + flatMap(() => this.window.changeSize(310, 400)) + ); } public close(): Observable {