mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
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…
x
Reference in New Issue
Block a user