adjusted intrinsicContentFrame to calculate height also to fit
previously it didn't adjust the height to be as small as possible #334