@univerjsuiindexfunctionsUsescrollyovercontainer

@univerjs/ui v0.5.4


Function: useScrollYOverContainer()

function useScrollYOverContainer(element, container): void

Defined in: submodules/univer/packages/ui/src/components/hooks/layout.ts:35

Allow the element to scroll when its height over the container height

Parameters

ParameterTypeDescription
elementNullable<HTMLElement>Container means the window view that the element displays in. Recommend pass the sheet mountContainer as container
containerNullable<HTMLElement>-

Returns

void