Merge pull request #2361 from bjarnef/dev-v7-U4-10791

U4-10791 - Fix collapsed columns listview settings
This commit is contained in:
Mads Rasmussen
2018-01-22 13:48:58 +01:00
committed by GitHub
2 changed files with 11 additions and 7 deletions

View File

@@ -77,14 +77,14 @@ function includePropsPreValsController($rootScope, $scope, localizationService,
// Return a helper with preserved width of cells
var fixHelper = function (e, ui) {
var h = ui.clone();
h.children().each(function () {
$(this).width($(this).width());
ui.children().each(function () {
$(this).width($(this).width());
});
h.css("background-color", "lightgray");
return h;
var row = ui.clone();
row.css("background-color", "lightgray");
return row;
};
$scope.sortableOptions = {
@@ -96,6 +96,10 @@ function includePropsPreValsController($rootScope, $scope, localizationService,
cursor: 'move',
items: '> tr',
tolerance: 'pointer',
forcePlaceholderSize: true,
start: function(e, ui){
ui.placeholder.height(ui.item.height());
},
update: function (e, ui) {
// Get the new and old index for the moved element (using the text as the identifier)

View File

@@ -20,7 +20,7 @@
<td style="width:100px;"></td>
</tr>
</thead>
<tbody ui-sortable="sortableOptions">
<tbody ui-sortable="sortableOptions" ng-model="model.value">
<tr ng-repeat="val in model.value">
<td>
<i class="icon icon-navigation handle"></i>