Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bug #4967 - Remove embed whitespace

http://bugs.dwscoalition.org/show_bug.cgi?id=4967
Removes unnecessary whitespace padding from embedded objects.
  • Loading branch information...
commit 44047d6678de2f97eee801214409125b791c9d1b 1 parent 68f1cf5
@kimira kimira authored
Showing with 1 addition and 5 deletions.
  1. +0 −4 cgi-bin/LJ/EmbedModule.pm
  2. +1 −1  htdocs/tools/embedcontent.bml
View
4 cgi-bin/LJ/EmbedModule.pm
@@ -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
View
2  htdocs/tools/embedcontent.bml
@@ -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:transparent; padding:0; margin:0; border:0; overflow:hidden; }</style></head><body style="background-color: transparent;">$content</body></html>
};
}
_code?>
Please sign in to comment.
Something went wrong with that request. Please try again.