mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Convert the calibrate screen window to be a dialog instead of a window.
Thanks to stephen walker for the patch.
This commit is contained in:
parent
b4fa8bf650
commit
64efb73ef4
@ -21,15 +21,14 @@
|
||||
|
||||
<?xml-stylesheet href="chrome://messenger/skin/" type="text/css"?>
|
||||
|
||||
<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
|
||||
|
||||
<!DOCTYPE page SYSTEM "chrome://communicator/locale/pref/pref-fonts.dtd" >
|
||||
|
||||
<window id="calibrateScreen"
|
||||
<dialog id="calibrateScreen"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
title="&calibrateDialog.title;"
|
||||
class="dialog"
|
||||
onload="Init();"
|
||||
ondialogaccept="return onOK();"
|
||||
ondialogcancel="return onCancel();"
|
||||
persist="screenX screenY">
|
||||
|
||||
<script type="application/x-javascript"
|
||||
@ -45,9 +44,9 @@
|
||||
<hbox align="center">
|
||||
<label value="&calibrate.instructions;"/>
|
||||
</hbox>
|
||||
|
||||
|
||||
<separator class="thin"/>
|
||||
|
||||
|
||||
<hbox align="center">
|
||||
<textbox id="horizSize" size="5"/>
|
||||
<menulist id="units" persist="value">
|
||||
@ -55,15 +54,11 @@
|
||||
<menuitem value="centimetres" label="&units.centimetres;"/>
|
||||
<menuitem value="inches" label="&units.inches;"/>
|
||||
</menupopup>
|
||||
</menulist>
|
||||
|
||||
</menulist>
|
||||
</hbox>
|
||||
|
||||
|
||||
<separator/>
|
||||
|
||||
<keyset id="dialogKeys"/>
|
||||
<hbox id="okCancelButtonsRight"/>
|
||||
|
||||
</vbox>
|
||||
|
||||
</window>
|
||||
|
||||
</dialog>
|
||||
|
@ -666,7 +666,6 @@ function setResolution( resolution )
|
||||
function Init()
|
||||
{
|
||||
sizeToContent();
|
||||
doSetOKCancel(onOK, onCancel);
|
||||
document.getElementById("horizSize").focus();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user