nui icon indicating copy to clipboard operation
nui copied to clipboard

UITextField different textRect for editing and static text.

Open sdkdimon opened this issue 8 years ago • 1 comments

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];
} 

sdkdimon avatar Mar 26 '16 17:03 sdkdimon

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.

Stunner avatar Mar 26 '16 18:03 Stunner