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 <gokaysa...@collabora.com>
AuthorDate: Sat Jul 11 15:07:37 2020 +0300
Commit:     Henry Castro <hcas...@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 <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Henry Castro <hcas...@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);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to