Scale to fit the content attachment when resizing modal