[Libreoffice-commits] online.git: loleaflet/src
Henry Castro
hcastro at collabora.com
Tue Sep 5 00:37:27 UTC 2017
loleaflet/src/control/Control.ColumnHeader.js | 8 ++++----
loleaflet/src/control/Control.RowHeader.js | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
New commits:
commit 3b6af443bda99dd8f10b668bbafa5efdceb3d6be
Author: Henry Castro <hcastro at collabora.com>
Date: Mon Sep 4 20:40:53 2017 -0400
loleaflet: related to tdf#107806
Change-Id: Ifd6bd15538007416747accf7b0ad602292b1195a
diff --git a/loleaflet/src/control/Control.ColumnHeader.js b/loleaflet/src/control/Control.ColumnHeader.js
index c63a0c83..a9571d25 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 c582117e..744a99a6 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)
}
};
More information about the Libreoffice-commits
mailing list