collapsible.js: Use `scrollHeight` to measure a container's actual height
This commit is contained in:
parent
9f858a9073
commit
0140fdf485
|
@ -101,7 +101,7 @@
|
|||
if (!! rowSelector) {
|
||||
return $(rowSelector, $collapsible).length > ($collapsible.data('visibleRows') || this.defaultVisibleRows);
|
||||
} else {
|
||||
var actualHeight = $collapsible.innerHeight(),
|
||||
var actualHeight = $collapsible[0].scrollHeight,
|
||||
maxHeight = $collapsible.data('visibleHeight') || this.defaultVisibleHeight;
|
||||
|
||||
if (actualHeight <= maxHeight) {
|
||||
|
|
Loading…
Reference in New Issue