Forum Discussion
ysapiyev
7 years agoResponsive Resident
Borders of report
Hi everyone I embedded Power BI report in web application and got borders of report. I set background transparency of report in Power BI Desktop to 100% and set embedding settings: settings: { back...
- 7 years ago
Hi,
Was able to solve this issue adding border-style:none to power-bi.js file.
Regards,
Yerkhan
alexbjorlig
6 years agoHelper IV
Where did you add this to the js file?
csjames010
6 years agoFrequent Visitor
powerbi-client/dist/powerbi.js
Line 838 (or so) add iframeContent.style.border = 'none';
Here it is added in context:
Embed.prototype.setIframe = function (isLoad, phasedRender) {
var _this = this;
if (!this.iframe) {
var iframeContent = document.createElement("iframe");
var embedUrl = this.config.uniqueId ? utils.addParamToUrl(this.config.embedUrl, 'uid', this.config.uniqueId) : this.config.embedUrl;
iframeContent.style.width = '100%';
iframeContent.style.height = '100%';
iframeContent.style.border = 'none';
I've been irritated with that border for weeks. Finally came across this which led me down the right path to find it.
- rupeshkumar3901 year agoNew Member
I am using powerbi-client CDN by jsDelivr - A free, fast, and reliable Open Source CDN ,, how can I add this style .. this link is not editable