[NUI] Fix LinearLayout to update max height and width correctly