bug 826783 - make certificate viewer more flexible about its minimum size r?mgoodwin
This makes the certificate viewer able to shrink itself down a bit on small
screen sizes. Without this patch, the "Close" button would be off the screen on
small resolutions like 1024x768. On larger screen sizes, this patch should have
no effect on the initial size of the certificate viewer window (although it now
can be made smaller manually).
MozReview-Commit-ID: IET9dxx23Xc
--- a/security/manager/pki/resources/content/certDump.xul
+++ b/security/manager/pki/resources/content/certDump.xul
@@ -8,36 +8,36 @@
<overlay id="certDumpOverlay"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cert="http://netscape.com/rdf-cert#"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<vbox class="box-padded" id="certPrettyPrint" flex="1">
<label class="header" value="&certmgr.hierarchy.label;"
control="treesetDump" accesskey="&certmgr.hierarchy.accesskey2;"/>
<tree id="treesetDump" onselect="updateCertDump();" flex="1"
- hidecolumnpicker="true" style="min-height: 8em;">
+ hidecolumnpicker="true" style="height: 8em;">
<treecols>
<treecol id="dumpCol" flex="1" primary="true" hideheader="true"/>
</treecols>
</tree>
<label class="header" value="&certmgr.details.label;"
control="prettyDumpTree" accesskey="&certmgr.details.accesskey;"/>
- <tree id="prettyDumpTree" style="min-height: 15em" treelines="true" flex="1"
+ <tree id="prettyDumpTree" style="height: 15em" treelines="true" flex="1"
onselect="displaySelected();" hidecolumnpicker="true">
<treecols>
<treecol flex="1" id="certDataCol" primary="true" hideheader="true"/>
</treecols>
<treechildren/>
</tree>
<label class="header" value="&certmgr.fields.label;"
control="certDumpVal" accesskey="&certmgr.fields.accesskey;"/>
<textbox id="certDumpVal" multiline="true" flex="1"
- readonly="true" style="min-height: 11em; font-family: -moz-fixed;"/>
+ readonly="true" style="height: 11em; font-family: -moz-fixed;"/>
<separator class="thin"/>
<hbox>
<button id="export_cert" class="normal" label="&certmgr.export.label;"
accesskey="&certmgr.export.accesskey;"
oncommand="exportToFile(window, getCurrentCert());"/>
</hbox>
</vbox>