Setting minimum height and width for chrome window in Firefox

I am trying to limit the minimum height and width of a chrome (xul) window. The window itself is opened using the window.openDialog method . I tried using the minwidth and minheight property , but that doesn't seem to affect the window. I'm also trying to constrain the size by handling the onresize event like this:

onresize()
{
  return false;
}

      

but that doesn't work either.

Any hints?

0


a source to share


1 answer


Ok, I think I figured out the answer.



There is no easy solution. It seems that for submarines opened by open or opendialog method, it is not possible to limit the minimum size using standard properties, however, using a combination of the onresize event handler and window.resizeTo () , I could get the window to maintain the minimum size.

0


a source







All Articles