Keep the original outerNode top offset as we need it later for NM height calculations

This commit is contained in:
Hadi Nategh 2022-08-09 15:17:49 +02:00
parent 56f103b21c
commit 281047e2cc

View File

@ -129,11 +129,12 @@ export class Et2Split extends Et2Widget(SlotMixin(SlSplitPanel))
// TODO: When dynheight goes away, this can too
if(typeof widget.dynheight !== "undefined")
{
let outerNodetopOffset = widget.dynheight.outerNode.offset().top;
widget.dynheight.outerNode = {
// Random 3px deducted to make things fit better. Otherwise nm edges are hidden
width: () => parseInt(getComputedStyle(this.shadowRoot.querySelector(".start")).width) - 3,
height: () => parseInt(getComputedStyle(this.shadowRoot.querySelector(".start")).height) - 3,
offset: () => 0
offset: () => {return {top:outerNodetopOffset}}
};
widget.dynheight._collectBottomNodes = function()
{