fixed ui-sortable offset bug

This commit is contained in:
David Baldwynn 2017-03-10 12:16:53 -08:00
parent 85516786bf
commit 87ef21ecae
No known key found for this signature in database
GPG key ID: 15D1C13202224A9B
6 changed files with 18 additions and 5 deletions

View file

@ -2432,7 +2432,6 @@ angular.module('forms').directive('editFormDirective', ['$rootScope', 'FormField
$scope.sortableOptions = {
appendTo: '.dropzone',
update: function(e, ui) {
console.log('updated element');
$scope.update(false, $scope.myform, false, true, null);
}
};

File diff suppressed because one or more lines are too long

View file

@ -27,3 +27,10 @@
.edit-field-modal-window .preview-field {
resize: vertical;
}
.admin-form .ui-sortable-placeholder {
visibility: visible !important;
border: none;
padding:1px;
background:rgba(0, 0, 0, 0.5) !important;
}

View file

@ -17,8 +17,15 @@ angular.module('forms').directive('editFormDirective', ['$rootScope', 'FormField
//Setup UI-Sortable
$scope.sortableOptions = {
appendTo: '.dropzone',
helper: 'clone',
forceHelperSize: true,
forcePlaceholderSize: true,
update: function(e, ui) {
$scope.update(false, $scope.myform, false, true, null);
$scope.update(false, $scope.myform, false, false, null);
},
start: function(e, ui) {
console.log(ui.item);
console.log(ui.placeholder);
}
};

View file

@ -329,6 +329,7 @@ div.config-form .row.field {
.admin-form .panel-heading {
background-color: #f1f1f1;
position: relative!important;
}
.admin-form .panel-heading:hover {
background-color: #fff;

View file

@ -157,7 +157,6 @@ angular.module('forms').directive('submitFormDirective', ['$http', 'TimeCounter'
}
SendVisitorData.send($scope.myform, getActiveField(), TimeCounter.getTimeElapsed());
};
$rootScope.nextField = $scope.nextField = function(){