//
//  CSTextField.m
//
//  Created by Cho, Young-Un on 11. 9. 17..
//  Copyright 2011 cultstory.com. All rights reserved.
//

#import "CSTextField.h"


@implementation CSTextField

@synthesize paddingX=_paddingX, paddingY=_paddingY;

- (CGRect)textRectForBounds:(CGRect)bounds {
    return CGRectMake(bounds.origin.x + _paddingX, 
                      bounds.origin.y + _paddingY,
                      bounds.size.width - (_paddingX * 2),
                      bounds.size.height - (_paddingY * 2));
}


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

@end
