Word and Phrase Origins

What is the origin of the idiom 'sitting pretty'?

234