Class CollisionAxis
Represents the collision handling configuration for both horizontal and vertical axes of popup positioning.
Inheritance
Namespace: Syncfusion.Blazor.Popups
Assembly: Syncfusion.Blazor.dll
Syntax
public class CollisionAxis : Object
Remarks
The CollisionAxis class allows you to specify different collision handling strategies for the X-axis (horizontal) and Y-axis (vertical) directions independently. This provides fine-grained control over how popups should behave when they encounter viewport boundaries.
Examples
Configuring collision handling for both axes.
var collisionAxis = new CollisionAxis
{
X = CollisionType.Flip,
Y = CollisionType.Fit
};
Constructors
CollisionAxis()
Declaration
public CollisionAxis()
Properties
X
Gets or sets the collision handling strategy for the horizontal (X) axis.
Declaration
public CollisionType X { get; set; }
Property Value
Type | Description |
---|---|
CollisionType | A CollisionType value that determines how the popup should behave when it encounters horizontal viewport boundaries. |
Remarks
This property controls the collision handling behavior when the popup would extend beyond the left or right edges of the viewport. The specified CollisionType strategy will be applied to resolve horizontal positioning conflicts.
Y
Gets or sets the collision handling strategy for the vertical (Y) axis.
Declaration
public CollisionType Y { get; set; }
Property Value
Type | Description |
---|---|
CollisionType | A CollisionType value that determines how the popup should behave when it encounters vertical viewport boundaries. |
Remarks
This property controls the collision handling behavior when the popup would extend beyond the top or bottom edges of the viewport. The specified CollisionType strategy will be applied to resolve vertical positioning conflicts.