summaryrefslogtreecommitdiff
path: root/loleaflet
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2020-09-15 21:36:14 +0200
committerJan Holesovsky <kendy@collabora.com>2020-09-17 15:03:51 +0200
commited0c1e34770c2dd4b346880f6e951851f1c171bf (patch)
tree7f2bfdf6fdcc354ce4e088aa0473a37bc793274e /loleaflet
parentf0b63eb7654d78b47958e300613591d016485f21 (diff)
split panes: No dragging of the split lines currently.
It is too buggy, let's instead allow only setting of that via the menu, similarly to what the desktop LO does. Change-Id: I219b2535e0cbd5310fe2a3a9ebf2098536d5c175
Diffstat (limited to 'loleaflet')
-rw-r--r--loleaflet/css/leaflet.css8
-rw-r--r--loleaflet/src/layer/vector/SplitterLine.js2
2 files changed, 8 insertions, 2 deletions
diff --git a/loleaflet/css/leaflet.css b/loleaflet/css/leaflet.css
index d8d8bd651..573815780 100644
--- a/loleaflet/css/leaflet.css
+++ b/loleaflet/css/leaflet.css
@@ -984,7 +984,9 @@ input.clipboard {
}
.leaflet-pane-splitter {
- cursor: grab;
+ /* FIXME when we are able to drag it again:
+ cursor: grab; */
+ cursor: default;
stroke: #e0e0e0;
fill: #e0e0e0;
opacity: 1;
@@ -996,11 +998,13 @@ input.clipboard {
fill: #eeeeee;
}
+/* FIXME when we are able to drag it again:
path.leaflet-pane-splitter:hover {
opacity: 1 !important;
stroke: #cdcdcd;
fill: #cdcdcd;
}
+*/
.input-help {
border-radius: 15px;
@@ -1022,4 +1026,4 @@ path.leaflet-pane-splitter:hover {
display: block;
text-indent: 20px;
text-align: justify;
-} \ No newline at end of file
+}
diff --git a/loleaflet/src/layer/vector/SplitterLine.js b/loleaflet/src/layer/vector/SplitterLine.js
index 9a8d25523..b52b3dcdf 100644
--- a/loleaflet/src/layer/vector/SplitterLine.js
+++ b/loleaflet/src/layer/vector/SplitterLine.js
@@ -68,6 +68,7 @@ L.SplitterLine = L.Rectangle.extend({
L.Rectangle.prototype.onAdd.call(this);
+ /* FIXME No dragging currently, it still needs a lot of polishing.
if (!this.dragging) {
this.makeDraggable();
}
@@ -76,6 +77,7 @@ L.SplitterLine = L.Rectangle.extend({
var node = nodeData.getNode();
L.DomEvent.on(node, 'mousedown', this._onDragStart, this);
}.bind(this));
+ */
this.addClass('leaflet-pane-splitter');