That takes the biscuit (U.S. takes the cake)

For something to be especially annoying or surprising, or to be the best or worst of its kind

e.g. my sister has always been nosey but recently I found her opening my letters - that really takes the biscuit!