Resize window in Xul

Can anyone tell me that I can resize the window in XUL. I tried resizing but it doesn't work.

+1


a source to share


2 answers


To resize the window manually, you use what you tried - "resizable"

var myWin = window.openDialog('chrome://myapp/content/mywindow.xul','mywindow','centerscreen,chrome,resizable,dialog=no',{});

      



To resize it programmatically, try ResizeTo or ResizeBy

+4


a source


resizeBy (width, height)



0


a source