mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Revert "Sortable: Always set placeholder size when necessary. Fixes #8262 - jQuery UI 1.8.19 don't respect forcePlaceholderSize."
This reverts commit4f19289c10
. (cherry picked from commit21df5c27e3
)
This commit is contained in:
parent
42041f8387
commit
3752211565
5
ui/jquery.ui.sortable.js
vendored
5
ui/jquery.ui.sortable.js
vendored
@ -674,8 +674,9 @@ $.widget("ui.sortable", $.ui.mouse, {
|
|||||||
// 2. The option 'forcePlaceholderSize can be enabled to force it even if a class name is specified
|
// 2. The option 'forcePlaceholderSize can be enabled to force it even if a class name is specified
|
||||||
if(className && !o.forcePlaceholderSize) return;
|
if(className && !o.forcePlaceholderSize) return;
|
||||||
|
|
||||||
p.height(self.currentItem.height());
|
//If the element doesn't have a actual height by itself (without styles coming from a stylesheet), it receives the inline height from the dragged item
|
||||||
p.width(self.currentItem.width());
|
if(!p.height()) { p.height(self.currentItem.innerHeight() - parseInt(self.currentItem.css('paddingTop')||0, 10) - parseInt(self.currentItem.css('paddingBottom')||0, 10)); };
|
||||||
|
if(!p.width()) { p.width(self.currentItem.innerWidth() - parseInt(self.currentItem.css('paddingLeft')||0, 10) - parseInt(self.currentItem.css('paddingRight')||0, 10)); };
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user