resizeFontToFitHeight bug

Hello, upon starting a new, blank project and trying the code on the link http://docs.coronalabs.com/daily/api/type/TextField/resizeHeightToFitFont.html I am getting an error. 
 

attempt to call method 'resizeHeightToFitFont' (a nil value)

Since this is a function provided by corona team, I couldn’t have messed up much and it could be a possible bug. Would like to know if there are any alternatives since i gotta pass my project till 30th or if i am (somehow) messing it up.

Thank you

What version of Corona SDK are you using?  This wasn’t added in time for the last public build (2511).  It’s appeared in a daily build sense.  Perhaps you should try to use a later daily build.  Scroll to the top and look for the “Daily build” button in orange.

Rob

was using 2511, but as suggested updated to the latest one (2625) and problem still happens

Should i try couple more versions or this latest one should have it already fixed?

and thanks alot for swift response

 

Can you post some code?

Rob

 
i figured out what the problem is, since i am working on windows i had an outside library which immitates how input fields works (since on windows input fields are only gray boxes with no interaction linked to them)

somehow this created a conflict with what i tried to do (because that outside library is not used to handling resizing) and it produced an error, linked to the function instead of that “fix” i had.

sorry for bothering with the post i fully forgot i had that function and how it works

What version of Corona SDK are you using?  This wasn’t added in time for the last public build (2511).  It’s appeared in a daily build sense.  Perhaps you should try to use a later daily build.  Scroll to the top and look for the “Daily build” button in orange.

Rob

was using 2511, but as suggested updated to the latest one (2625) and problem still happens

Should i try couple more versions or this latest one should have it already fixed?

and thanks alot for swift response

 

Can you post some code?

Rob

 
i figured out what the problem is, since i am working on windows i had an outside library which immitates how input fields works (since on windows input fields are only gray boxes with no interaction linked to them)

somehow this created a conflict with what i tried to do (because that outside library is not used to handling resizing) and it produced an error, linked to the function instead of that “fix” i had.

sorry for bothering with the post i fully forgot i had that function and how it works