Table of Contents

Method GetAdjustedPosition

Namespace
Terminal.Gui.App
Assembly
Terminal.Gui.dll

GetAdjustedPosition(View, Point)

Calculates an adjusted screen-relative position for the content view to ensure full visibility.

protected virtual Point GetAdjustedPosition(View view, Point idealLocation)

Parameters

view View

The view to position.

idealLocation Point

The ideal screen-relative location.

Returns

Point

The adjusted screen-relative position that ensures maximum visibility.

Remarks

This method adjusts the position to keep the view fully visible on screen, considering screen boundaries.