deanagit / swfobject

Automatically exported from code.google.com/p/swfobject
0 stars 0 forks source link

in firefox 3.6 swf object have to be "activated" by clicking on it, and then it changes dimensions by adding 1px width/height #432

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. i use swfobject to embed/display my swf movie 100% width/height
2.
3.

What is the expected output? What do you see instead?
in FF 3.6 first click on swf object is taken as "activation"
dimensions of swf object is changed and scrollers appear!

What version of the product are you using? On what operating system?
Windows XP / FF 3.6

Please provide any additional information below.

Original issue reported on code.google.com by didzis.k...@gmail.com on 27 Jan 2010 at 9:52

GoogleCodeExporter commented 9 years ago
I've suffered from same problem and have found the way to fix it by 
adding CSS style "outline:none" to a Flash content id or a HTML container 
id.

For example, if you're using "Dynamic publishing" method, your default 
html code should be this way:

swfobject.embedSWF("untitled.swf", "myAlternativeContent", "100%", 
"100%", "9.0.0", false, flashvars, params, attributes);

Then, add CSS style below.

#myAlternativeContent {
    outline:none;
}

If a Flash content id is specifiled like this way:

attributes.id = "myFlashContent";

Then, add CSS style NOT to the HTML container id BUT to the Flash 
content id.

#myFlashContent {
    outline:none;
}

Original comment by tonpoo.m...@gmail.com on 1 Feb 2010 at 4:04

GoogleCodeExporter commented 9 years ago
ty, tonpoo, it works!

Original comment by didzis.k...@gmail.com on 2 Feb 2010 at 1:17

GoogleCodeExporter commented 9 years ago
another solution is on this blog post
http://www.blog.lessrain.com/firefox-36-draws-one-pixel-border/

Original comment by Shabith....@gmail.com on 9 Feb 2010 at 9:48

GoogleCodeExporter commented 9 years ago
This is a Firefox bug, not a SWFObject bug. See the SWFObject FAQ:

http://code.google.com/p/swfobject/wiki/faq#15._Why_do_I_see_a_dotted_border_aro
und_my_SWF_when_using_Firefo

Original comment by platelu...@gmail.com on 8 Nov 2010 at 6:36