bug 826783 - make certificate viewer more flexible about its minimum size r?mgoodwin draft
authorDavid Keeler <dkeeler@mozilla.com>
Fri, 24 Jun 2016 10:23:18 -0700
changeset 381200 c61bd0c8cfeb247736db73780afdfb69460530d9
parent 380895 d1102663db10b3d4b9358f3cf4e16b7c56902352
child 523912 eb0b26fd0228694e37b861bb20c837220aecfac2
push id21424
push userdkeeler@mozilla.com
push dateFri, 24 Jun 2016 17:26:19 +0000
reviewersmgoodwin
bugs826783
milestone50.0a1
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
security/manager/pki/resources/content/certDump.xul
--- 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>