Another minor IE9 issue

19 views
Skip to first unread message

EarlyOut

unread,
Mar 18, 2011, 12:04:52 PM3/18/11
to SWFFit
In IE9, swffit is giving me extraneous vertical scrollbars. Take a
look at http://earlyout.org/swffitprob, and compare the expander
appearance in, say, FF to that in IE9. Resizing the window (there's a
little grab handle on the lower right) makes no difference.

You can view just the page in question, broken out of the expander, at
http://earlyout.org/swffitprob/Wildlife.html.

I suspect that IE9 is reporting the viewport height in a way that the
script isn't expecting, and it's a few pixels off (looks like about
20px).

The only workaround for now is to change the calling page to do IE8
emulation (<meta http-equiv="X-UA-Compatible"
content="IE=EmulateIE8">). That's a bit of a sledgehammer, of course!

Miller Medeiros

unread,
Mar 18, 2011, 1:10:52 PM3/18/11
to swf...@googlegroups.com
that should be a really easy fix.. the problem is that I'm so busy lately working on other client projects and other personal projects that when I' have free-time I don't want to code anymore :P I didn't even installed IE9 yet on my machine (so I never even seen the bug).

the problem should be on these lines: https://github.com/millermedeiros/swffit/blob/master/swffit/src/swffit_source.js#L191-193

this should fix it (didn't tested it since don't have IE9 and requires swfobject 2.2+):

//fix window innerSize difference when scrollbar is visible
var fixScroll = (!IE || (IE && swfobject.ua.pv[0] >= 9));
iw -= (fixScroll && ih <= _mh)? 18 : 0;
ih -= (fixScroll && iw <= _mw)? 18 : 0;

my plan was to make a complete re-write of swffit but this plan is being delayed for the past 2 years.. not sure if I will ever make it since I'm not even coding flash that much and/or using swffit.

cheers.

> --
> You received this message because you are subscribed to the Google Groups "SWFFit" group.
> To post to this group, send email to swf...@googlegroups.com.
> To unsubscribe from this group, send email to swffit+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/swffit?hl=en.
>

EarlyOut

unread,
Mar 18, 2011, 3:52:41 PM3/18/11
to SWFFit
Thanks, but that seems to be making no difference at all, I'm afraid.
And I know almost no Javascript whatsoever, so I'm not really in a
good position to experiment with similar solutions - I really wouldn't
know where to start!

Now that IE9 has been released officially, you should probably install
it. It's not just this problem - there are some other quirks showing
up in it, and it may affect other work that you're doing. I've had a
few nasty surprises so far. :(

Reply all
Reply to author
Forward
0 new messages