Fix reply dialog overlay on Android

Previously, on Android devices, when the gr-reply-dialog overlay is
opene, important contents could get cut off, including the submit and
cancel buttons. This change makes the reply dialog scrollable and full
width on small screens.  The max-height is also 100% so if scrolling is
required, the overlay will appear full screen.

Bug: Issue 4944
Change-Id: Ibf265a3039129363e479cbb3c29cb887aa23d889
This commit is contained in:
Becky Siegel
2016-11-18 15:39:46 -08:00
parent d7424d36b0
commit d6fb4f93ad
2 changed files with 13 additions and 1 deletions

View File

@@ -177,7 +177,7 @@ limitations under the License.
}
gr-reply-dialog {
min-width: initial;
width: 90vw;
width: 100vw;
}
.downloadContainer {
display: none;
@@ -213,6 +213,9 @@ limitations under the License.
flex: initial;
margin-right: 0;
}
.scrollable {
@apply(--layout-scroll);
}
}
</style>
<div class="container loading" hidden$="[[!_loading]]">Loading...</div>
@@ -348,6 +351,7 @@ limitations under the License.
on-close="_handleDownloadDialogClose"></gr-download-dialog>
</gr-overlay>
<gr-overlay id="replyOverlay"
class="scrollable"
no-cancel-on-outside-click
on-iron-overlay-opened="_handleReplyOverlayOpen"
with-backdrop>

View File

@@ -138,6 +138,14 @@ limitations under the License.
.action:visited {
color: #00e;
}
@media screen and (max-width: 50em) {
:host {
max-height: none;
}
.container {
max-height: none;
}
}
</style>
<div class="container">
<section class="peopleContainer">