Modified to account for padding on inputs

I replaced the original width calculation (this.width) to use this.outerWidth to account for padding on inputs.