Minor fix. Need to reset the max-width prior to calculating the size of the content, otherwise on reshowings it may shrink with each consecutive opening.