Skip to content

Commit 93d3cfb

Browse files
committed
Merge remote-tracking branch 'External/master'
2 parents 6493333 + eb57a47 commit 93d3cfb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

dist/powerbi-client.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ declare module "embed" {
208208
/**
209209
* Handler function for the 'ready' event
210210
*/
211-
frontLoadHandler: (HTMLElement) => any;
211+
frontLoadHandler: (element: HTMLElement) => any;
212212
/**
213213
* Creates an instance of Embed.
214214
*

src/embed.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,8 @@ export abstract class Embed {
539539
if(!this.iframe) {
540540
var iframeContent = document.createElement("iframe");
541541
var embedUrl = this.config.uniqueId ? utils.addParamToUrl(this.config.embedUrl, 'uid', this.config.uniqueId) : this.config.embedUrl;
542-
iframeContent.setAttribute("style", "width:100%;height:100%;");
542+
iframeContent.style.width = '100%';
543+
iframeContent.style.height = '100%';
543544
iframeContent.setAttribute("src", embedUrl);
544545
iframeContent.setAttribute("scrolling", "no");
545546
iframeContent.setAttribute("allowfullscreen", "true");

0 commit comments

Comments
 (0)