onload="InitEditCookie()"
>
height="342"
width="496"
Probably has a typo. Very hard to see in Forum.
It must probably get the closing after width="496"> else there is not a closed, valid expression. Try it like that.
Here is an working example from mimetypes pref.xul.
It uses relative size
em
<dialog id="prefDialog"
xmlns="
http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
title="&mtypes.title;"
style="width:50em;height:40em"
windowtype="mozilla:preferences"
contextmenu="0"
buttons="accept,cancel"
onload="onLoad();"
ondialogaccept="return hPrefWindow.onAccept();"
ondialogcancel="return hPrefWindow.onCancel();"
persist="screenX screenY width height"
>
It is closed at the end.
Look into pref.xul of kmprefs for another way (example) of doing it.
<dialog xmlns="
http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
id="prefDialog" title="&prefDialog.title;"
style="&prefDialog.style;"
kko uses a style element defined outside.
Some lines later also comes the closing >.
In kmprefs' locale pref.dtd, kko defines the style's sizes.
The bold section is normally translated but not here.
So why was it placed here?
It gives relative size in
em and also gives it to translator to adapt the size of the window to accomodate e.g. Polish or German.... translation.
<!ENTITY prefDialog.style "
width: 68.5em; height: 55em;">
We non English probably want to do it like kko did
Try it also. IMHO it is better.
I did not know all this when I created mimetypes 0.3 from Mozilla 1.7 sources.
p.s.
Special thanx go to disrupted for explaining every thing to me in this thread.
Edited 5 time(s). Last edit at 09/16/2009 01:24PM by guenter.