fix iframe width/height

This commit is contained in:
j 2012-06-04 22:14:48 +02:00
parent 9173ce454b
commit 6e7b029f1c

View file

@ -994,7 +994,7 @@ def oembed(request):
height = maxheight height = maxheight
if maxwidth > width or width > maxwidth: if maxwidth > width or width > maxwidth:
width = maxwidth width = maxwidth
oembed['html'] = '<iframe width="%s" height="%s" src="%s" frameborder="0" allowfullscreen></iframe>' % (height, width, embed_url) oembed['html'] = '<iframe width="%s" height="%s" src="%s" frameborder="0" allowfullscreen></iframe>' % (width, height, embed_url)
oembed['width'] = width oembed['width'] = width
oembed['height'] = height oembed['height'] = height
thumbheight = 96 thumbheight = 96