Adding auto height to InputWrapper class