Skip to content

Commit 88ca8cf

Browse files
committed
fix(*): Tile size when restoring from fuilscreen to maximized state
1 parent 01e71f2 commit 88ca8cf

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/components/tile-manager/tile.ts

+7-6
Original file line numberDiff line numberDiff line change
@@ -310,12 +310,6 @@ export default class IgcTileComponent extends EventEmitterMixin<
310310
public set maximized(value: boolean) {
311311
this._maximized = value;
312312

313-
const { width, height } = value
314-
? this._resizeState.emptyResizeDimensions
315-
: this._resizeState.resizedDimensions;
316-
317-
this._resizeContainer?.setSize(width, height);
318-
319313
if (this._tileManagerCtx) {
320314
this._tileManagerCtx.instance.requestUpdate();
321315
}
@@ -653,6 +647,13 @@ export default class IgcTileComponent extends EventEmitterMixin<
653647
}
654648

655649
protected override render() {
650+
const { width, height } =
651+
this.fullscreen || this.maximized
652+
? this._resizeState.emptyResizeDimensions
653+
: this._resizeState.resizedDimensions;
654+
655+
this._resizeContainer?.setSize(width, height);
656+
656657
return html`
657658
<igc-resize
658659
part=${partNameMap({

0 commit comments

Comments
 (0)