collision detection

Checking whether a floating element would run off the edge of the viewport and moving it if so.

In more detail

The lesson flips a panel from below its anchor to above when the bottom edge would overflow. Libraries also shift the panel sideways and resize it to fit.

Related terms

Taught in

References