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
> [email protected]
> https://www.mozdev.org/mailman/listinfo/project_owners
>
>
_______________________________________________
Project_owners mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/project_owners