From f130134dd16887a8cc3caa0a8f277b12b43d7e3c Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 7 Oct 2022 11:57:06 -0600 Subject: [PATCH] Dynheight: Don't consider size of fixed or absolute positioned widgets when collecting bottom nodes --- api/js/etemplate/et2_widget_dynheight.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/et2_widget_dynheight.ts b/api/js/etemplate/et2_widget_dynheight.ts index c5c3694db9..d445133dcb 100644 --- a/api/js/etemplate/et2_widget_dynheight.ts +++ b/api/js/etemplate/et2_widget_dynheight.ts @@ -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); }