Invalidate layout after setting autoLayout.