[Project_owners] Thunderbird (Mac) seems to ignore dialog size

Philip Chee philip.chee at gmail.com
Thu Sep 15 03:53:30 EDT 2005


On 14/09/2005 17:43, Markus Hossner wrote:
> Hi,
> 
> when I open a dialog in Thunderbird (Mac) with the following
> instruction the give size (width and height) is ignored:
> 
> window.openDialog('chrome://test/content/dialog.xul','testdialog','dialog,chrome,centerscreen,resizable=no,width=480,height=265');
> 
> The dialog opens everytime with the same size which is to small to see
> the full dialog content.
> 
> Can anybody confirm this problem with Tb (Mac)? And have any workaround
> to set the needed dialog size?

Instead of setting an explicit size on openDialog, you might try using
window.sizeToContent in the onload handler of your dialog.

Phil
-==-
Philip Chee <philip at aleytys.pc.my>, <philip.chee at gmail.com>
http://flashblock.mozdev.org/
Guard us from the she-wolf and the wolf, and guard us from the thief,
oh Night, and so be good for us to pass.
[ ]<Ctrl><Alt><Del> to read the next message
* TagZilla 0.059


More information about the Project_owners mailing list