Add support for autoresizing when using autolayout