check_resize works better than configure