[Libreoffice-commits] online.git: loleaflet/css loleaflet/src

Pranam Lashkari (via logerrit) logerrit at kemper.freedesktop.org
Tue Mar 31 08:56:39 UTC 2020


 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 <lpranam at collabora.com>
AuthorDate: Fri Mar 27 06:32:26 2020 +0530
Commit:     Andras Timar <andras.timar at 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 <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Andras Timar <andras.timar at 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;
 	}
 
- at media (max-width: 767px) and (orientation: potrait), (max-device-width: 767px) and (orientation: portrait) {
+ at 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');
 			}


More information about the Libreoffice-commits mailing list