Dynheight: Don't consider size of fixed or absolute positioned widgets when collecting bottom nodes

This commit is contained in:
nathan 2022-10-07 11:57:06 -06:00
parent d8e993dc75
commit f130134dd1

View File

@ -162,7 +162,7 @@ export class et2_dynheight
jQuery(_node).children().each(function() {
const $this = jQuery(this);
const top = $this.offset().top;
if (this != self.innerNode[0] && top >= _bottom)
if(this != self.innerNode[0] && top >= _bottom && ["fixed", "absolute"].indexOf(getComputedStyle(this).position) == -1)
{
self.bottomNodes.push($this);
}