Thanks.
I kept staring at "ignoreScroll" wondering if it had something to do
with it. getSize().x ignores the scroll bar *I think*
Gotta turn this project around, however, so some sloppy domready code
is in order. When I get some time I'm going to think some more about
it.
Ryan Florence
On Dec 17, 2009, at 4:53 PM, Aaron Newton wrote:
Hmm. Well, for starters, the first argument of Mask is the element
to mask (document.body, for example). So your style argument was
being ignored.
As for the overflow issue, the problem is that when you ask the
element for its size, the width includes the scrollbar, so the mask
is set to the size of the element, which creates the horizontal
overflow because it's too big by the amount of the scrollbar. The
thing is, there's no value that I know of that you can get from the
browser for the dimensions of an element sans-scroll bars. I'll have
to give it some thought. Suggestions are welcome.
Note that masking the document body should, in theory, be the only
place you have this problem.
On Thu, Dec 17, 2009 at 6:06 PM, Ryan Florence
<[email protected]> wrote:
http://mootools.net/shell/q3GxG/
Sorry about he the StickyWin missnomer in the last message. My
issue is with Mask
Why does it cause this overflow? Why won't it take my style
object? Looking through the source I can't figure out where it's
defining the width.
Ryan Florence