tombenner / nui

Style iOS apps with a stylesheet, similar to CSS
MIT License
3.76k stars 460 forks source link

UITextField different textRect for editing and static text. #344

Open sdkdimon opened 8 years ago

sdkdimon commented 8 years ago

Hi, i am have issue with custom UITextfield which has different textRect and editingTextRect. In UITextField+NUI.m found override_editingRectForBounds

  - (CGRect)override_editingRectForBounds:(CGRect)bounds {
     return [self textRectForBounds:bounds];
} 

Seems to be it is a bug, i guess method implementation should be:

 - (CGRect)override_editingRectForBounds:(CGRect)bounds {
    return [self override_editingRectForBounds:bounds];
} 
Stunner commented 8 years ago

Good catch. If you submit a pull request we'd be happy to review it. If you could throw in some test cases as well that would be superb.