Reworked Firefox autoHeight fix and added comment for context.