WithinViewportPopupSizeProvider class

Constrains popups to fit within the viewport's bottom and right edges.

This assumes that the position of the popup source does not change, and is intended for use in cases where the popup source is not within a scrollable area. Since it controls only the size and not the position, it works best for popups that open to the bottom and right of the anchor.

Implemented types

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getMaxHeight(num positionY, num viewportHeight) num
The max height.
override
getMaxWidth(num positionX, num viewportWidth) num
The max width.
override
getMinHeight(num positionY, num viewportHeight) num?
The min height.
override
getMinWidth(num positionX, num viewportWidth) num?
The min width.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited