Index: lams_central/web/includes/javascript/authoring/authoringProperty.js =================================================================== diff -u -rbd4fa408454e7389b4e60bc68f2488de88eff663 -rf39a3bdccf084790b73cce7e340fca0100025d7a --- lams_central/web/includes/javascript/authoring/authoringProperty.js (.../authoringProperty.js) (revision bd4fa408454e7389b4e60bc68f2488de88eff663) +++ lams_central/web/includes/javascript/authoring/authoringProperty.js (.../authoringProperty.js) (revision f39a3bdccf084790b73cce7e340fca0100025d7a) @@ -836,6 +836,9 @@ .css('opacity', layout.conf.propertiesDialogDimOpacity) .mousemove(HandlerPropertyLib.approachPropertiesDialogHandler) .find('.modal-header button').remove(); + propertiesDialog.on('drag', function(event, ui){ + $(this).data('dragged', true); + }); layout.dialogs.push(propertiesDialog); var groupNamingContent = $('#propertiesContentGroupNaming'); @@ -1764,6 +1767,10 @@ } modalBody.find('input').blur(); dialog.on('shown.bs.modal', function(){ + if (dialog.data('dragged')){ + // if user dragged the dialog at least once, it does not automatically change its position anymore + return; + } var box = object.items.getBBox(), canvasOffset = canvas.offset(), canvasWidth = canvas.width(),