summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2017-09-04 20:40:53 -0400
committerHenry Castro <hcastro@collabora.com>2017-09-04 20:40:53 -0400
commit3b6af443bda99dd8f10b668bbafa5efdceb3d6be (patch)
tree2400781dd14850354cb0921ad19f599da34cda38
parent01dd761750b0fe0ab5a1c0949fc9dd7b67db195f (diff)
loleaflet: related to tdf#107806
Change-Id: Ifd6bd15538007416747accf7b0ad602292b1195a
-rw-r--r--loleaflet/src/control/Control.ColumnHeader.js8
-rw-r--r--loleaflet/src/control/Control.RowHeader.js8
2 files changed, 8 insertions, 8 deletions
diff --git a/loleaflet/src/control/Control.ColumnHeader.js b/loleaflet/src/control/Control.ColumnHeader.js
index c63a0c831..a9571d255 100644
--- a/loleaflet/src/control/Control.ColumnHeader.js
+++ b/loleaflet/src/control/Control.ColumnHeader.js
@@ -297,14 +297,14 @@ L.Control.ColumnHeader = L.Control.Header.extend({
if (item.width != distance.x) {
var command = {
+ ColumnWidth: {
+ type: 'unsigned short',
+ value: this._map._docLayer.twipsToHMM(Math.max(distance.x, 0))
+ },
Column: {
type: 'unsigned short',
value: item.parentNode && item.parentNode.nextSibling &&
L.DomUtil.getStyle(item.parentNode.nextSibling, 'display') === 'none' ? item.column + 1 : item.column
- },
- Width: {
- type: 'unsigned short',
- value: Math.max(distance.x, 0)
}
};
diff --git a/loleaflet/src/control/Control.RowHeader.js b/loleaflet/src/control/Control.RowHeader.js
index c582117e5..744a99a66 100644
--- a/loleaflet/src/control/Control.RowHeader.js
+++ b/loleaflet/src/control/Control.RowHeader.js
@@ -271,14 +271,14 @@ L.Control.RowHeader = L.Control.Header.extend({
if (item.height != distance.y) {
var command = {
+ RowHeight: {
+ type: 'unsigned short',
+ value: this._map._docLayer.twipsToHMM(Math.max(distance.y, 0))
+ },
Row: {
type: 'long',
value: item.parentNode && item.parentNode.nextSibling &&
L.DomUtil.getStyle(item.parentNode.nextSibling, 'display') === 'none' ? item.row + 1 : item.row
- },
- Height: {
- type: 'unsigned short',
- value: Math.max(distance.y, 0)
}
};