Ok... let me try to explain it better.

Both functions are doing the same thing for Netscape 4.79, and were both not 
working as expected. The reason why I wrote two functions was to show that 
both functions were not working correctly.

Using Netscape 4.79 under window 2000, I was trying to clip the layer to 
some values [0,523,28,424] and then clip it again to a different set of 
values [0,325,28,226]. First, the layer does get clipped to [0,523,28,424]. 
However on the second clipping, the layer get clipped to [0,424,28,226] 
instead of [0,325,28,226]. (To make sure you can see the values, I did make 
the value appear in a popup window)

That's the problem I am having. I want this layer to be clipped to 
[0,325,28,226], and not [0,424,28,226]. So I wrote two functions to show 
everyone that somehow this.css.clip.right does not hold the correct value of 
325 for Netscape 4.79. Instead it holds 424. That's a bug. This bug only 
happen with Netscape 4.79. I was not able to reproduce this bug for Netscape 
6.2 and IE5.5.

So the way I temporally fixed this issue was to clip once to [0,523,28,424] 
and TWICE the layer to [0,325,28,226]. If you just do that, the layer will 
be clipped first to [0,523,28,424], then to [0,424,28,226], and then to 
[0,325,28,226].

In short, it seems that if you have a layer you want to clip twice in a row, 
it will not work the second time around. Therefore you need to clip it twice 
the second time.


Sincerely,



Thomas

----Original Message Follows----
From: "Robert Rainwater" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: [Dynapi-Dev] Clipping bug in NS4.79. Need help!!
Date: Thu, 10 Jan 2002 19:36:23 -0500

It wasn't clear by your example which is not working: Setting the clip
manually or using .setClip.  Is the problem with setClip?

Robert

 > I find a temporally solution to this issue. All I did was to force the
 > layer to clip twice to [0,325,28,226]. Can someone tell me a more
 > elegent way to fix this issue?
 >
 >
 >
 > ----Original Message Follows----
 > From: "Quang Nguyen" <[EMAIL PROTECTED]>
 > To: [EMAIL PROTECTED]
 > Subject: [Dynapi-Dev] Clipping bug in NS4.79. Need help!!
 > Date: Wed, 09 Jan 2002 23:27:14 +0000
 >
 > Can someone tell me why and how to fix this issue?
 >
 >
 > Environment: Window2000, Netscape Communicator 4.79
 >
 > Description: The layer will be clipped normally the first time but not
 > the second time around... First it was supposed to clip the layer to
 > [0,523,28,424], and right after to [0,325,28,226]. However, the layer
 > will be actually clipped to [0,424,28,226] on the second try!!
 >
 > Run the attached code for more details.
 >
 > _________________________________________________________________ Chat
 > with friends online, try MSN Messenger: http://messenger.msn.com
 >
 >
 > _______________________________________________
 > Dynapi-Dev mailing list
 > [EMAIL PROTECTED]
 > http://www.mail-archive.com/dynapi-dev@lists.sourceforge.net/



_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/dynapi-dev@lists.sourceforge.net/


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/dynapi-dev@lists.sourceforge.net/

Reply via email to