Added event handlers to auto re-size height based on width.