Skip to content

Commit

Permalink
fix(ui5-illustrated-message): fixed infinite resize (#8584)
Browse files Browse the repository at this point in the history
Fixes: #5852
  • Loading branch information
plamenivanov91 committed Mar 29, 2024
1 parent 38012fe commit aa1301b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/fiori/src/IllustratedMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,7 @@ class IllustratedMessage extends UI5Element {
if (!(lastKnownOffsetWidth && currOffsetWidth === lastKnownOffsetWidth
&& lastKnownOffsetHeight && currOffsetHeight === lastKnownOffsetHeight)
|| this._lastKnownOffsetWidthForMedia[this._lastKnownMedia] === 0
|| this._lastKnownOffsetHeightForMedia[this._lastKnownMedia] === 0
|| this._lastKnownMedia !== newMedia) {
|| this._lastKnownOffsetHeightForMedia[this._lastKnownMedia] === 0) {
this.media = newMedia;
this._lastKnownOffsetWidthForMedia[newMedia] = currOffsetWidth;
this._lastKnownOffsetHeightForMedia[newMedia] = currOffsetHeight;
Expand Down

0 comments on commit aa1301b

Please sign in to comment.