doAction( "position_boundary" )

doAction( "position_boundary", boundary, area );
doAction( "position_boundary_{key}", boundary, area );

Allows modification of the Area position boundaries.

The dynamic part of the filter name is the sanitized Area key. See DiviAreaItem.theKey() for details.

The properties of the boundary can be adjusted by the action handler; the default values are:

boundary = {
  minX: 0,
  minY: 0,
  maxX: window.innerWidth,
  maxY: window.innerHeight

When the admin-toolbar is visible, the minY value is changed to 32px before firing this action.


(object, required) The minimum and maximum allowed coordinates of the Area. The object contains the four properties minX maxX minY and maxY that can contain integer values.
(DiviAreaItem, required) The Area instance.


Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.