1681-engine / react / Panel
Function: Panel() ​
ts
function Panel(__namedParameters): Element;Defined in: src/react/Panel.tsx:35
A window that never overflows the screen: fitted by fitToViewport (moved inside the edges, cut to what is left, shrunk to minScale when the UiProvider allows it) with its header kept and its body scrolling under it. Placed in whole pixels by left/top, never centred with translate(-50%), which stood an odd-width window half a pixel off the grid and smeared every icon in it.
On a touch screen it is a full-screen sheet instead (.e1681-sheet): no width of its own, the header put and the body scrolling, laid out at the provider's sheetScale. A press inside never reaches the world under it.
Parameters ​
| Parameter | Type |
|---|---|
__namedParameters | PanelProps |
Returns ​
Element