1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-19 04:51:22 +02:00

Fix issue processwire/processwire-issues#531 repeater within a fieldset depth changes unexpectedly when repeater item dragged up/down.

This commit is contained in:
Ryan Cramer
2018-03-14 10:02:15 -04:00
parent 1045acc057
commit 27b6141a1b
2 changed files with 2 additions and 4 deletions

View File

@@ -499,9 +499,6 @@ function InputfieldRepeater($) {
var prevDepth = parseInt($depth.val());
var left = ui.position.left;
// AdminThemeDefault has something different going on with the left positions, so we adjust for that here
if(!isAdminDefault) left -= depthSize;
if(left < 0) {
depth = prevDepth - Math.round(Math.abs(left) / depthSize);
// console.log('decrease depth to: ' + depth);
@@ -555,6 +552,7 @@ function InputfieldRepeater($) {
$item.css('margin-left', targetLeft + 'px');
}
});
$inputfieldRepeater.children('.InputfieldContent').css('position', 'relative');
}
/**

File diff suppressed because one or more lines are too long