mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Fix for hidden old popups breaking application height. Still not perfect in idots, but much better.
This commit is contained in:
parent
55880077ee
commit
b485b57785
@ -68,10 +68,18 @@ var et2_dynheight = Class.extend(
|
|||||||
var it = this.innerNode.offset().top;
|
var it = this.innerNode.offset().top;
|
||||||
|
|
||||||
// Calculate the height of the "bottomNodes"
|
// Calculate the height of the "bottomNodes"
|
||||||
var bminTop = 0;
|
var bminTop = Infinity;
|
||||||
var bmaxBot = 0;
|
var bmaxBot = 0;
|
||||||
for (var i = 0; i < this.bottomNodes.length; i++)
|
for (var i = 0; i < this.bottomNodes.length; i++)
|
||||||
{
|
{
|
||||||
|
// Ignore hidden popups
|
||||||
|
if(this.bottomNodes[i].find('.action_popup').length)
|
||||||
|
{
|
||||||
|
egw.debug('warn', "Had to skip a hidden popup - it should be removed",
|
||||||
|
this.bottomNodes[i].find('.action_popup')
|
||||||
|
);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
// Get height, top and bottom and calculate the maximum/minimum
|
// Get height, top and bottom and calculate the maximum/minimum
|
||||||
var bh = this.bottomNodes[i].outerHeight(true);
|
var bh = this.bottomNodes[i].outerHeight(true);
|
||||||
var bt = this.bottomNodes[i].offset().top;
|
var bt = this.bottomNodes[i].offset().top;
|
||||||
|
Loading…
Reference in New Issue
Block a user