update left/top calculations