Needs review
Project:
SWF Tools
Version:
6.x-2.x-dev
Component:
SWF Tools
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 Sep 2009 at 19:25 UTC
Updated:
17 Apr 2010 at 21:50 UTC
Hey gang.
I noticed that swfobject2 does not support setting the height or width to 100%. I did work around this however by:
1) Removing any mention of height or width in the swf() function call.
2) adding to line 68 of swfobject2.module:
$vars->params['width'] = '100%';
This does, of course, force every swf object to be 100% width.
Is swfobject2 going to deal with percentages of height and width? Is something being parsed incorrectly?
Comments
Comment #1
smudboy commentedI also noticed if I just use only
$vars->params['height'] = '100%';instead of width, nothing gets displayed.
Comment #2
Stuart Greenfield commentedDRUPAL-6--3 lets you supply % heights if you want. Setting to needs review so I remember to close this when new release is made.