title: UITextField text not scrolling off on the left side
body: <p>I have a <code>UITextField</code> subclass where I have overridden some methods (see code below). The problem is that when I type in it and the text reaches the rigth margin it will no longer show what I am typing. In view debug mode I see that the <code>UIFieldEditor</code> is much wider that the text filed. </p>
  
  <p>Here is the UITextFiled subclass code:</p>
  
  <pre><code>- (instancetype)init
  {
      self = [super init];
      if (self) {
         self.edgeInsets = UIEdgeInsetsMake(7, 0, 10, 15);
      }
      return self;
  }
  
  - (id)initWithFrame:(CGRect)frame{
      self = [super initWithFrame:frame];
      if (self) {
          self.edgeInsets = UIEdgeInsetsMake(7, 0, 10, 15);
      }
      return self;
  }
  
  -(id)initWithCoder:(NSCoder *)aDecoder{
      self = [super initWithCoder:aDecoder];
      if(self){
          self.edgeInsets = UIEdgeInsetsMake(7, 0, 10, 15);
      }
      return self;
  }
  
  - (CGRect)textRectForBounds:(CGRect)bounds {
      return [super textRectForBounds:UIEdgeInsetsInsetRect(bounds, self.edgeInsets)];
  }
  
  - (CGRect)editingRectForBounds:(CGRect)bounds {
      return [super editingRectForBounds:UIEdgeInsetsInsetRect(bounds, self.edgeInsets)];
  }
  </code></pre>
  
  <p>Here is the code where I use this class:</p>
  
  <pre><code>// alloc / init 
          _myTextField.delegate = self;
          _myTextField.backgroundColor = [UIColor whiteColor];
          _myTextField.layer.masksToBounds = YES;
          _myTextField.layer.cornerRadius = 3.0;
          _myTextField.returnKeyType = UIReturnKeyDone;
          _myTextField.clearButtonMode = UITextFieldViewModeWhileEditing;
          _myTextField.autocapitalizationType = UITextAutocapitalizationTypeWords;
          _myTextField.autocorrectionType = UITextAutocorrectionTypeNo;
          _myTextField.hidden = YES;
  
          _tfButton = [UIButton buttonWithType:UIButtonTypeSystem];
          [_tfButton setImage:[UIImage imageNamed:@"ic_edit"] forState:UIControlStateNormal];
          [self fs_addSubview:_tfButton];
          [_tfButton constrainWidth:22.];
          [_tfButton setTintColor:[UIColor greenColor]];
          [_tfButton constrainHeight:22.];
          [_tfButton constrainToRightOfView:_myTextField margin:-25.0];
          [_tfButton constrainEqualCenterYWithView:_myTextField offset:0.0];
          [_tfButton setUserInteractionEnabled:NO];
  
  
          UIView *leftView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 5, 5)];
  
          _myTextField.leftView = leftView;
          _myTextField.leftViewMode = UITextFieldViewModeAlways;
  </code></pre>
  
  <p>How do I get the text to scroll off on the left side when the user is typing a large string in this text field? </p>