f7dabb088a
RelativeLayout, when measured with AT_MOST, was applying the gravity on its children way too early. This caused the RL to set its measured size to a value that was larger than necessary. This fixes the issue by deferring the positioning of the gravity-dependent children until the dimensions of the layout are known.