mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
collapsible.js: Fix flickering
This commit is contained in:
parent
89fdccb858
commit
54720a1fc1
@ -79,11 +79,12 @@
|
||||
}
|
||||
});
|
||||
|
||||
setTimeout(function () {
|
||||
for (var i = 0; i < toCollapse.length; i++) {
|
||||
_this.collapse(toCollapse[i][0], toCollapse[i][1]);
|
||||
}
|
||||
}, 0);
|
||||
// Elements are all collapsed in a row now, after height calculations are done.
|
||||
// This avoids reflows since instantly collapsing an element will cause one if
|
||||
// the height of the next element is being calculated.
|
||||
for (var i = 0; i < toCollapse.length; i++) {
|
||||
_this.collapse(toCollapse[i][0], toCollapse[i][1]);
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user