jverdi/JVFloatLabeledTextField

Placeholder text that exceeds bounds of a TextView cannot be viewed

MattCarr147 opened this issue · 1 comments

If a particularly long placeholder is used, such that the text exceeds the bounds of the TextView, then there is no way to view the clipped text.

Using the following text, for example:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer in felis eget lacus sagittissemper. Suspendisse potenti. Donec bibendum commodo justo, eu vulputate elit iaculis eget. Duis sollicitudin pulvinar elit pharetra commodo. Maecenas laoreet cursus urna. Nunc magna lectus, consequat accumsan quam vel, eleifend vulputate turpis. Integer eleifend massa aliquet fringilla aliquet. Sed ipsum lectus, ornare in ex tincidunt, ultricies blandit tortor. Vivamus ac massa ac velit finibus volutpat.

Vestibulum vitae dapibus tellus, eu commodo magna. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Cras interdum tellus non velit interdum tempus. Integer tincidunt tellus sit amet ipsum luctus, et ornare sem mollis. Duis non dui sollicitudin, laoreet lectus vitae, convallis lorem. Pellentesque lobortis, turpis ut dictum consequat, justo nulla laoreet tellus, sit amet varius neque nisl a purus. In a velit purus. Cras sem nunc, sollicitudin viverra nibh et, rhoncus facilisis nisl. Nunc finibus ullamcorper aliquet. Vestibulum vehicula velit ut gravida eleifend.

Will result in the following behaviour:

simulator screen shot - iphone 7 - 2017-09-14 at 16 08 30

Apologies for that commit, wrong issue number referenced. Been a long day...