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

gokaysatir (via logerrit) logerrit at kemper.freedesktop.org
Wed Sep 9 12:24:42 UTC 2020


 loleaflet/src/control/Control.PartsPreview.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f6c24f90033678fb24358d460111332230d1a6c5
Author:     gokaysatir <gokaysatir at collabora.com>
AuthorDate: Fri Aug 28 21:36:35 2020 +0300
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Wed Sep 9 14:24:23 2020 +0200

    loleaflet: Impress slide scroll improved.
    
    On tablet, slide preview scroll section is always on the left column. So when user switches to layout/portrait views, scroll item's classes should remain same.
    
    Change-Id: I84349cd48b317578d9bb2687c3a66aa788f57780
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/101563
    Tested-by: Jenkins
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Andras Timar <andras.timar at collabora.com>

diff --git a/loleaflet/src/control/Control.PartsPreview.js b/loleaflet/src/control/Control.PartsPreview.js
index 8694b8bf6..dfc37beaf 100644
--- a/loleaflet/src/control/Control.PartsPreview.js
+++ b/loleaflet/src/control/Control.PartsPreview.js
@@ -179,7 +179,7 @@ L.Control.PartsPreview = L.Control.extend({
 
 			// re-create scrollbar with new direction
 			var direction = this._direction;
-			this._direction = !window.mode.isDesktop() && L.DomUtil.isPortrait() ? 'x' : 'y';
+			this._direction = !window.mode.isDesktop() && !window.mode.isTablet() && L.DomUtil.isPortrait() ? 'x' : 'y';
 			if (direction !== this._direction) {
 				$(this._partsPreviewCont).mCustomScrollbar('destroy');
 				this.createScrollbar();


More information about the Libreoffice-commits mailing list