Not only corners but also sides can change the scale of overlay view