@kanunilabs/pivotgrid / fitPortalZoom
Function: fitPortalZoom()
fitPortalZoom(
host):void
Takes the page's CSS zoom back out of an appended host (B.71). A page
that zooms <body> (or the host's parent) paints everything in the host that many
times larger: 95vw, inset: 0 and the viewport coordinates a menu is placed
at come out too big and the window runs off the screen. Painted width over layout
width is the zoom; the host zooms by its inverse, so lengths inside it are in
viewport pixels again. Call it right after the host is appended.
Parameters
host
HTMLElement
Returns
void