Documentation

@kanunilabs/pivotgrid


@kanunilabs/pivotgrid / portalParent

Function: portalParent()

portalParent(): HTMLElement

Where a popup host must be appended so that it is actually PAINTED.

Under the native Fullscreen API only the fullscreen element's subtree is rendered: a host appended to <body> exists, receives events, and is invisible. That is what made every menu, dialog and the field chooser "not open" while the grid was fullscreen — they opened, behind the one element the browser was drawing. So while something is fullscreen, hosts go INSIDE it. The CSS-emulated fallback (.pivot-is-fullscreen, a fixed z-index 9990 layer) gets the same treatment, for the same reason.

Returns

HTMLElement