Permalink
Browse files

Merge pull request #321 from kimira/bug4967/remove_embed_whitespace

Bug #4967 - Remove unnecessary whitespace from embedded objects
  • Loading branch information...
2 parents 701a7b3 + 47ed3e2 commit eb124b20f58413ec12dd630320df4915f739a094 @afuna afuna committed Mar 20, 2013
Showing with 1 addition and 5 deletions.
  1. +0 −4 cgi-bin/LJ/EmbedModule.pm
  2. +1 −1 htdocs/tools/embedcontent.bml
@@ -336,10 +336,6 @@ sub module_iframe_tag {
}
}
}
-
- # add padding
- $width += 50 if $width && ! $width_unit;
- $height += 50 if $height && ! $height_unit;
}
# use explicit values if we have them
@@ -42,7 +42,7 @@ _c?>
);
return qq {
- <html><head></head><body style="background-color: transparent;">$content</body></html>
+ <html><head><style type="text/css">html, body { background-color:transparent; padding:0; margin:0; border:0; overflow:hidden; }</style></head><body>$content</body></html>
};
}
_code?>

0 comments on commit eb124b2

Please sign in to comment.