From d544b5a98b466586aaa7951a466d274d7052b513 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Thu, 16 Nov 2017 17:23:00 +0000 Subject: [PATCH] fix layout issues (#2655) --- demo-shell/src/styles.scss | 3 ++- lib/core/viewer/components/pdfViewer.component.scss | 2 +- lib/core/viewer/components/pdfViewerHost.component.scss | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/demo-shell/src/styles.scss b/demo-shell/src/styles.scss index cba4c8ed30..0fbe7e0d75 100644 --- a/demo-shell/src/styles.scss +++ b/demo-shell/src/styles.scss @@ -4,7 +4,8 @@ body, html { margin: 0; height: 100%; + overflow: hidden; font-size: mat-font-size($alfresco-typography, body-1); font-family: mat-font-family($alfresco-typography); line-height: mat-line-height($alfresco-typography, body-1); -} \ No newline at end of file +} diff --git a/lib/core/viewer/components/pdfViewer.component.scss b/lib/core/viewer/components/pdfViewer.component.scss index 74f2465c40..26d91ac7b2 100644 --- a/lib/core/viewer/components/pdfViewer.component.scss +++ b/lib/core/viewer/components/pdfViewer.component.scss @@ -19,7 +19,7 @@ &__toolbar { position: absolute; - bottom: 60px; + bottom: 64px; left: 50%; transform: translateX(-50%); diff --git a/lib/core/viewer/components/pdfViewerHost.component.scss b/lib/core/viewer/components/pdfViewerHost.component.scss index 20817fce7c..e7e4de3784 100644 --- a/lib/core/viewer/components/pdfViewerHost.component.scss +++ b/lib/core/viewer/components/pdfViewerHost.component.scss @@ -237,9 +237,9 @@ overflow: auto; -webkit-overflow-scrolling: touch; position: absolute; - top: 32px; + top: 0; right: 0; - bottom: 0; + bottom: 64px; left: 0; outline: none; }