The number of pixels required for the leftwards available space to be bigger than the rightwards available space before directing the pop-up leftwards.
Equation:
const directLeftwards =
rightwardsSpace < minRightSpace &&
leftwardsSpace > rightwardsSpace + horizontalDiffThreshold;
The minimum number of pixels for allowing the pop-up to go downwards. If the downward
available space is less than this, and if the upwards available space is
verticalDiffThreshold more than the downwards space, the pop-up will be directed upwards.
Equation:
const directUpwards =
downwardsSpace < minDownSpace &&
upwardsSpace > DownwardsSpace + verticalDiffThreshold;
The minimum number of pixels for allowing the pop-up to go rightwards. If the rightward
available space is less than this, and if the leftwards available space is
horizontalDiffThreshold more than the rightwards space, the pop-up will be directed
leftwards.
Equation:
const directLeftwards =
rightwardsSpace < minRightSpace &&
leftwardsSpace > rightwardsSpace + horizontalDiffThreshold;
Supports navigation of the pop up via the device-navigation package.
The number of pixels required for the upwards available space to be bigger than the downwards available space before directing the pop-up upwards.
Equation:
const directUpwards =
downwardsSpace < minDownSpace &&
upwardsSpace > DownwardsSpace + verticalDiffThreshold;
Options for PopUpManager.