Skip to content

Commit

Permalink
- fixed an issue with the trade window not restoring to it's fully size
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyusung4698 committed Jun 23, 2020
1 parent fb42549 commit 7f49cbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@
"disable_rightclick": true,
"transparent": true,
"resizable": true,
"override_on_update": true,
"size": {
"width": 310,
"height": 400
Expand Down
5 changes: 4 additions & 1 deletion src/app/modules/trade/service/trade-window.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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<void> {
Expand Down

0 comments on commit 7f49cbf

Please sign in to comment.