add autoWidth, autoHeight type, size-changed event