Hi,

I created an gecko embedding app that loads the
following xul file.  In it, I tried to resize
the window to 50px wide.

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window id="toolkit01"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";>
<script type="application/x-javascript">
window.moveTo(95, 200);
window.resizeTo(50, 50);
window.focus();  // this will make window visible
</script>
</window>

However, it refuses to be reduced to less than 100px in either width
or height.  I can see this happening in the
nsIEmbeddingSiteWindow::SetDimensions() routine which is always
passed in a value of 100px for any value less than 100  used in resizeTo().

is this a security restriction? or is there something I've missed?

Thanks
Steve
_______________________________________________
mozilla-embedding mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to