loleaflet/src/control/Control.LokDialog.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit 1333d21753f56f124f8d5919c3790b387ebe1869 Author: Pranav Kant <pran...@collabora.co.uk> Date: Fri Dec 8 18:29:40 2017 +0530 lokdialog: fix cursor_visible status in dialogs Change-Id: I4c96a05911df29207c9280c3835dbdd7e72a1e80 diff --git a/loleaflet/src/control/Control.LokDialog.js b/loleaflet/src/control/Control.LokDialog.js index c8a8b0f8..772e7328 100644 --- a/loleaflet/src/control/Control.LokDialog.js +++ b/loleaflet/src/control/Control.LokDialog.js @@ -140,13 +140,14 @@ L.Control.LokDialog = L.Control.extend({ $('#' + strDlgId + '-cursor').css({height: height}); // set the position of the lokdialog-cursor $(this._dialogs[e.id].cursor).css({left: x, top: y}); + $('#' + strDlgId + '-cursor').css({display: this._dialogs[e.id].cursorVisible ? 'block' : 'none'}); } } else if (e.action === 'title_changed') { this._title = e.title; $('#' + strDlgId).dialog('option', 'title', e.title); } else if (e.action === 'cursor_visible') { - var visible = e.visible === 'true'; - if (visible) + this._dialogs[e.id].cursorVisible = e.visible === 'true'; + if (this._dialogs[e.id].cursorVisible) $('#' + strDlgId + '-cursor').css({display: 'block'}); else $('#' + strDlgId + '-cursor').css({display: 'none'}); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits