fix nil dimen bug in InputContainer:init