div-wrap-content-size

The size of an element adjusts to its contents.

Parameters

Parameters Description
type

string

Required parameter.

The value must always be wrap_content.

constrained

bool_int

The final size mustn't exceed the parent one. On iOS and in a default browser false. On Android always true.

max_size

object

Maximum size of an element.

The value has the type div-size-unit-value.

min_size

object

Minimum size of an element.

The value has the type div-size-unit-value.

JSON
{
  type*: "wrap_content",
  constrained: "bool_int",
  max_size: {
    unit: "string",
    value*: "int"
  },
  min_size: {
    unit: "string",
    value*: "int"
  }
}