mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:29:05 +01:00
Keep the original outerNode top offset as we need it later for NM height calculations
This commit is contained in:
parent
56f103b21c
commit
281047e2cc
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user