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

gokaysatir (via logerrit) logerrit at kemper.freedesktop.org
Wed Jul 15 20:50:34 UTC 2020


 loleaflet/css/selectionMarkers.css    |    6 ++++--
 loleaflet/src/layer/tile/TileLayer.js |    2 --
 2 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 7ac677244b5391f0a09a4d4ff70000cc1f0bfa30
Author:     gokaysatir <gokaysatir at collabora.com>
AuthorDate: Sat Jul 11 15:07:37 2020 +0300
Commit:     Henry Castro <hcastro at collabora.com>
CommitDate: Wed Jul 15 22:50:14 2020 +0200

    loleaflet: Writer, mobile: Selection handles are slightly off.
    
    Change-Id: If81bb33f80f4f52733c3465567c4dc27abf5b8b5
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98559
    Tested-by: Jenkins
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Henry Castro <hcastro at collabora.com>

diff --git a/loleaflet/css/selectionMarkers.css b/loleaflet/css/selectionMarkers.css
index f7acfabff..f35083819 100644
--- a/loleaflet/css/selectionMarkers.css
+++ b/loleaflet/css/selectionMarkers.css
@@ -1,6 +1,7 @@
 .leaflet-selection-marker-start {
 	position: absolute;
-	margin-left: -28px;
+	margin-left: -30px;
+	margin-top: -2px;
 	width: 30px;
 	height: 44px;
 	background-image: url('images/handle_start.svg');
@@ -8,7 +9,8 @@
 
 .leaflet-selection-marker-end {
 	position: absolute;
-	margin-left: -2px;
+	margin-left: 0;
+	margin-top: -2px;
 	width: 30px;
 	height: 44px;
 	background-image: url('images/handle_end.svg');
diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js
index 09eea8893..7a370575e 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -3188,7 +3188,6 @@ L.TileLayer = L.GridLayer.extend({
 
 			if (!startMarker.isDragged) {
 				var pos = this._map.project(this._textSelectionStart.getSouthWest());
-				pos = pos.subtract(new L.Point(0, 2));
 				pos = this._map.unproject(pos);
 				startMarker.setLatLng(pos);
 				this._map.addLayer(startMarker);
@@ -3196,7 +3195,6 @@ L.TileLayer = L.GridLayer.extend({
 
 			if (!endMarker.isDragged) {
 				pos = this._map.project(this._textSelectionEnd.getSouthEast());
-				pos = pos.subtract(new L.Point(0, 2));
 				pos = this._map.unproject(pos);
 				endMarker.setLatLng(pos);
 				this._map.addLayer(endMarker);


More information about the Libreoffice-commits mailing list