Skip navigation
Currently Being Moderated

Using TLFTextfield and UIScrollbar ... A bug?

Jun 1, 2012 8:05 AM

Hi,

 

I'm using the TLFTextfield with the UIScrollbar as part of a Chat Application.

 

Everything is working fine exept the way the "thumb" on the scroll bar resizes as the height of the TLFTextfield grows.

 

As each line is added to the textfield beyond it´s visible boundries the "thumb" shrinks exponentially, so that when there are just three lines of scrollable text, the thumb is already tiny.

 

This doesn´t happen if I use a Classic Text Field, where the "thumb" shrinks at a much more gradual rate.

 

Comparing the two, it looks like the difference is down to the _maxScrollPosition variable in the ScrollBar. In the Classic Text the _maxScrollPosition refers to the number of lines, where in TLFTextfield it refers to the number of pixels.

 

Is this a bug?

 

How can I get the UIScrollBar to scroll normally with the TLFTextfield?

 

Thanks in advance....

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points