[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-3-1' - loleaflet/src

Marco Cecchetti marco.cecchetti at collabora.com
Mon Feb 19 15:54:32 UTC 2018


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

New commits:
commit 3384185969de833dd50d5aab8e7e71521dc641f5
Author: Marco Cecchetti <marco.cecchetti at collabora.com>
Date:   Mon Feb 5 19:35:36 2018 +0100

    calc: header entry border was not shown at certain zoom levels
    
    Change-Id: I531ad3a06e208fcafa4ca8243e2b54fffcd8449e
    Reviewed-on: https://gerrit.libreoffice.org/50006
    Reviewed-by: Andras Timar <andras.timar at collabora.com>
    Tested-by: Andras Timar <andras.timar at collabora.com>

diff --git a/loleaflet/src/control/Control.Header.js b/loleaflet/src/control/Control.Header.js
index 22e176da..f7752908 100644
--- a/loleaflet/src/control/Control.Header.js
+++ b/loleaflet/src/control/Control.Header.js
@@ -58,7 +58,7 @@ L.Control.Header = L.Control.extend({
 		this._font = fontSize + 'px/' + rate + ' ' + fontFamily;
 		this._borderColor = L.DomUtil.getStyle(elem, 'border-top-color');
 		var borderWidth = L.DomUtil.getStyle(elem, 'border-top-width');
-		this._borderWidth = parseInt(borderWidth);
+		this._borderWidth = Math.round(parseFloat(borderWidth));
 		this._cursor = L.DomUtil.getStyle(elem, 'cursor');
 		L.DomUtil.remove(elem);
 	},


More information about the Libreoffice-commits mailing list