Added horizontal layout_weight support.