Commit e2effe43 authored by Cliff Smolinsky's avatar Cliff Smolinsky Committed by Commit Bot

Adjust CSS for certificate viewer dialog to support scaling.

This change makes a few updates to the certificate viewer css:
- Adds minheights to the three sections of the details tab
- Changes layout to relative
- Updates to use flex instead of -webkit-box (per presubmit)

Bug: 1023970
Change-Id: Ia782ced8132be1ece4237b86eb5692297f2dd9e1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1913574Reviewed-by: default avatarSteven Bennetts <stevenjb@chromium.org>
Commit-Queue: Cliff Smolinsky <cliffsmo@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#715015}
parent c52bb558
......@@ -10,7 +10,7 @@ body {
}
body {
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
}
......@@ -77,34 +77,37 @@ tabpanel {
}
.vertical-box {
-webkit-box-align: stretch;
-webkit-box-orient: vertical;
-webkit-box-pack: start;
display: -webkit-box;
display: flex;
flex-direction: column;
height: 100%;
position: absolute;
position: relative;
width: 100%;
}
/* The minimum heights defined for the three sections are calculated based on
* the percentage of rendered height at 100% scaling. The dialog height is
* defined in CertificateViewerDialog::GetDialogSize. */
#hierarchy-section {
height: 20%;
min-height: 117px;
top: 0;
}
#cert-fields-section {
height: 50%;
top: 20%;
min-height: 294px;
}
#cert-field-value-section {
bottom: 0;
height: 30%;
min-height: 126px;
}
.section-contents {
-webkit-box-flex: 1;
background: #fff;
border: 1px solid #c8c8c8;
flex: 1 1 auto;
/* Scrolling should be enabled on all tree views and value field. */
overflow: auto;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment