When boolean properties are set to hide all the children in an auto layout the latter ignores constrains

I’m using a component with the following structure

Top row (to be ignored)

Middle row

  • Side label
  • Input field

Bottom row

  • Side label space
  • Messages
    –+ Status message
    –+ Detail message

Status message’s and Detail message’s visibility is controlled by two separate boolean properties.

Messages is an auto layout wrapper with it’s constraints set to Hug and Hug.

Side label space is also controlled by a 3rd boolean property.

When I use the properties to hide both Status message and Details message the auto layout wrapper “Messages” retains it’s space (I’m also having “Side label space” hidden).

Is this an intended behavior or some bug?

1 Like