glaszig / SZTextView

A drop-in UITextView replacement which gives you: a placeholder.
MIT License
683 stars 102 forks source link

Add support for matching lineFragmentPadding #11

Closed benlachman closed 10 years ago

benlachman commented 10 years ago

Simply adds tracking of self.textContainer.lineFragmentPadding. Line fragment padding defaults to 10.0 but in our app we set it to 0. This made our placeholder offset from our normal text by that 10 pixels. Tracking lineFragmentPadding of course fixes this.

benlachman commented 10 years ago

Updated code per feedback. Take another look.

glaszig commented 10 years ago

great. thank you.