i am using a tableRow with a textifled and a slider on it. My goal ist, that the slider just have a width, resulting of the width of the textfield..
How can i acces the width of the Textfield? Everything thing i tried is "null" ....
(field.width, field.getWidth, field.size.width...)
Cant be that hard?
If your textField doesn't have hard coded dimensions (when you are using percentages for example), there is no way to know the final dimension of your field until it is actually drawn on the screen. Of course, at this point in the code, it is too late.
Therefore, there is the postlayout event that you can use if you want to retouch things after the UI is laid out.
hmm my Ti.API.info fires up three times - everytime "null".... (inside the postlayout event)
or isn field.width right?
Think you can help? Login to answer this question!