loleaflet/css/partsPreviewControl.css         |    5 +++--
 loleaflet/src/control/Control.PartsPreview.js |    2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

New commits:
commit 4a05263ff80a63cfe5d524d879da41ac43cc129c
Author:     Pranam Lashkari <lpra...@collabora.com>
AuthorDate: Fri Mar 27 06:32:26 2020 +0530
Commit:     Andras Timar <andras.ti...@collabora.com>
CommitDate: Tue Mar 31 10:56:21 2020 +0200

    leaflet: solved Slide previews being cut off in vertical orientation
    
    Change-Id: Id288529d03301e5a13479fa27b96cf3c1a6f1ec1
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91187
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Andras Timar <andras.ti...@collabora.com>

diff --git a/loleaflet/css/partsPreviewControl.css 
b/loleaflet/css/partsPreviewControl.css
index 3a7e14774..618d2e0a7 100644
--- a/loleaflet/css/partsPreviewControl.css
+++ b/loleaflet/css/partsPreviewControl.css
@@ -33,14 +33,15 @@
        margin-left: 20px;
        }
 
-@media (max-width: 767px) and (orientation: potrait), (max-device-width: 
767px) and (orientation: portrait) {
+@media (max-width: 767px) and (orientation: portrait), (max-device-width: 
767px) and (orientation: portrait) {
        #slide-sorter {
                max-height: 60px;
        }
 
        .preview-img {
-               min-width: 60px;
+               min-width: 37px;
                max-width: 60px;
+               max-height: 45px;
                margin: 0px;
        }
 
diff --git a/loleaflet/src/control/Control.PartsPreview.js 
b/loleaflet/src/control/Control.PartsPreview.js
index 0dbff5411..4d9776566 100644
--- a/loleaflet/src/control/Control.PartsPreview.js
+++ b/loleaflet/src/control/Control.PartsPreview.js
@@ -199,7 +199,7 @@ L.Control.PartsPreview = L.Control.extend({
                        previewFrameBottom = previewFrameTop + 
this._previewFrameHeight;
 
                        if (this._direction === 'x') {
-                               L.DomUtil.setStyle(img, 'width', 
this._previewImgHeight + 'px');
+                               L.DomUtil.setStyle(img, 'width', 
this._previewImgWidth + 'px');
                        } else {
                                L.DomUtil.setStyle(img, 'height', 
this._previewImgHeight + 'px');
                        }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to