Barbie,

I'm working on the following dirty solution:

var fontChangeCatcher = new DynLayer();
fontChangeCatcher.setHTML('.');
fontChangeCatcher.setVisible(false);
DynAPI.document.addChild(fontChangeCatcher)     

document.onmouseover = function() {
   if ((fontChangeCatcher.getWidth() != fontChangeCatcher.getContentWidth())||
        (fontChangeCatcher.getHeight() != fontChangeCatcher.getContentHeight()) )
        document.location.reload()
}

Works in IE doesn't work in NN. By the way also the examples don't work whith the NN 
increase/decrease font.
The solution requires the document reload but I don't think it is a big problem. I'll 
try to refine the stuff.

Regards,
-rochi

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Barbie
Sent: Thursday, May 10, 2001 5:27 PM
To: [EMAIL PROTECTED]
Subject: Re: [Dynapi-Help] catching browser font changing


From: "Rochi Febo Dommarco" <[EMAIL PROTECTED]>

> I was thinking to restore the width using the content width but without a
firing event the only solution seems to have a thread that discovers that
layer.getWidth() != layer.getContentWidth(), this doesn't seems to me a good
solution.

It might not be a good one, but it's probably the only way you'll get it to
work unfortunately. Until both IE & NN agree on a few things it's going to
be yet another one for the wish list :(

Barbie.



_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help
�b�i����x%��C�v��w��X���(��~��zw���i��b��,���y�+��޷�b��?�+-�w��ܧj��zZ

Reply via email to