mirror of
https://github.com/processwire/processwire.git
synced 2025-08-19 13:01:26 +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:
@@ -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
Reference in New Issue
Block a user