View Full Version : Layer Clipping in NS 4.7

08-06-2002, 04:30 PM
Hi, been a while since I have been in the forum. Nice changes...
I have been working with layers and clipping and got stumped by Netscape ver 4.7 (6 is no problem believe it or not). The archives don't have anything about this type of problem, and I can't find any bug reports either.

A mouseover calls a function that does the following:


But nothing happens. If I do the following:


It works fine, ie the layer gets clipped. I checked to see if the variable was actually being passed:


and it shows the variable has changed, however the layer has not changed its size.

Thoughts? Thanks.

08-06-2002, 10:49 PM
Clipping doesn't change the element's size; it simply alters the viewport (visible area). I'm guessing you know that - and that clipping the bottom must be done in a negative direction (from fully revealed, where clip.bottom == Layer.height) to mask the lower part of the layer. Otherwise: never heard of this, but I've never heard of numerous things...

08-07-2002, 01:10 AM
Actually the script was right. Unfortunately I believe it was the refresh script required for NS. There was a stylesheet in the header with a clip instruction. Thus everytime the page reloaded/refreshed the stylesheet was reloaded and thus i never saw the change.