[Project_owners] sizeToContent() help

Anton Glazatov antonglv at gmail.com
Thu May 1 11:04:13 PDT 2008


I think it is because there is persist="width height" attribute in 
preferences xul. You need window.removeAttribute("width") (height also) 
before sizeToContent (), or re-id <window>. Remove persist=... in both 
cases.
> Ubuntu users and some OS/X users are reporting screens like this in my extension:
>
> http://img74.imageshack.us/img74/2326/foxyproxyok1vu2.png
> http://img215.imageshack.us/img215/6199/foxyproxyok2tg7.png
>
> and writing comments like this at AMO:
>
> "The UI is completely broken under OS X (the windows have to be resized to even see the validation buttons"
>
> Thefirst screenshot shows a <window/> that doesn't usesizeToContent(). The second screenshot shows a <dialog/> that*does* use sizeToContent(). Does sizeToContent() work only in certaincases? Mark Finkle in IRC recommended I try:
>
>   setTimeout( function() {sizeToContent();}, 0);
>
> but since I have neither Ubuntu nor OS/X, I won't know if this fixes the problem. What should I do?
>
> Thanks for any advice,
> Eric
>
>
>
>       ____________________________________________________________________________________
> Be a better friend, newshound, and 
> know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> https://www.mozdev.org/mailman/listinfo/project_owners
>
>   



More information about the Project_owners mailing list