simplified adjust content size method.