Skip to content

Commit

Permalink
[utils] embed code: put "border: 0" in iframe style
Browse files Browse the repository at this point in the history
  • Loading branch information
nleush committed Apr 7, 2017
1 parent 7f60dcc commit fefccee
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/html-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@

if (!omitInlineStyles) {

$element.css('top', '0px')
.css('left', '0px')
$element.css('top', '0')
.css('left', '0')
.css('width', '100%')
.css('height', '100%')
.css('position', 'absolute');

$container.css('left', '0px')
$container.css('left', '0')
.css('width', '100%')
.css('height', '0px')
.css('height', '0')
.css('position', 'relative');

// Default aspect ratio.
Expand Down Expand Up @@ -266,7 +266,7 @@
.attr('allowfullscreen', '');

if (!omitInlineStyles) {
$iframe.attr('frameborder', '0');
$iframe.css('border', '0');
}

if (data.media && data.media.scrolling === 'no') {
Expand Down

0 comments on commit fefccee

Please sign in to comment.