[Libreoffice-commits] online.git: loleaflet/src
Szymon Kłos (via logerrit)
logerrit at kemper.freedesktop.org
Thu Nov 28 11:29:08 UTC 2019
loleaflet/src/control/Control.JSDialogBuilder.js | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
New commits:
commit 6b93ded7133ccebb58d4f37900786725756da284
Author: Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Thu Nov 28 12:28:43 2019 +0100
Commit: Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Thu Nov 28 12:28:43 2019 +0100
jsdialog: read Position values
Change-Id: I5963bea8d32f99b9b0a69cea2edb54f3402e43d6
diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js b/loleaflet/src/control/Control.JSDialogBuilder.js
index da6ce637f..c89fd85c9 100644
--- a/loleaflet/src/control/Control.JSDialogBuilder.js
+++ b/loleaflet/src/control/Control.JSDialogBuilder.js
@@ -571,6 +571,12 @@ L.Control.JSDialogBuilder = L.Control.extend({
case 'selectheight':
return '.uno:Size';
+
+ case 'horizontalpos':
+ return '.uno:Position';
+
+ case 'verticalpos':
+ return '.uno:Position';
}
return null;
@@ -802,6 +808,20 @@ L.Control.JSDialogBuilder = L.Control.extend({
return String(L.mm100thToInch(state.split('x')[1]).toFixed(2));
}
break;
+
+ case 'horizontalpos':
+ state = items.getItemValue('.uno:Position');
+ if (state) {
+ return String(L.mm100thToInch(state.split('/')[0]).toFixed(2));
+ }
+ break;
+
+ case 'verticalpos':
+ state = items.getItemValue('.uno:Position');
+ if (state) {
+ return String(L.mm100thToInch(state.split('/')[1]).toFixed(2));
+ }
+ break;
}
return null;
More information about the Libreoffice-commits
mailing list