You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since each fragment of a gist varies in size/height, iframe-resizer cannot calculate each individual component's height properly. This is because each iframe's height is calculated per id, resulting in stopping calculating other iframes with the same id.
Possible solution
To get around this issue, we need to append the filename (if provided) to the generated iframeId.
For example:
...
/** * The file to display. If not specified, the first file in the gist will be displayed. */
@Input()file?: string;/** * The id of the gist to display. */
@Input()setgistId(id: string){this._gistId=id;constfileId=this.file ? `-file=${this.file}` : ''` this._iframeId = `gist-${id}${fileId}`;}
...
The text was updated successfully, but these errors were encountered:
Describe the bug
When trying to render a gist containing multiple files in seperate
ngx-gist
components,the iframes are just partially rendered.
For example:
Expected behavior
Expected both iframes to render the whole content while automatically adjusting the iframe's height.
Screenshots
Traceback
This layout error may be caused by using the same iframe id for both
ngx-gist
componentswhen the component computes property bindings:
ngx-gist/projects/ngx-gist/src/lib/ngx-gist.component.ts
Lines 55 to 61 in a0b7133
Since each fragment of a gist varies in size/height,
iframe-resizer
cannot calculate each individual component's height properly. This is because each iframe's height is calculated per id, resulting in stopping calculating other iframes with the same id.Possible solution
To get around this issue, we need to append the filename (if provided) to the generated iframeId.
For example:
The text was updated successfully, but these errors were encountered: