If the iPad gets too hot is shuts down until its cool.
Never put in on top of the instrument panel. You need to develop new habits! I've never had trouble with it getting too hot on my knee, I presume you were just the right angle to the sun.
I have a full cover on mine so I can put in vertically beside the seat without scratching it.