Fixing autoWidth/autoHeight behavior when only one is set.