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

Marco Cecchetti marco.cecchetti at collabora.com
Mon Feb 19 19:00:29 UTC 2018


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

New commits:
commit 3b3197e477aaa279d123dca2c32c242f30385390
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/49975
    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 9a97a254..c5686705 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