Textfield issues in iOS

Hello!

I’m having a bit of issues with the textfields when building my app for iOS, problem is described with the attached images. The first one is from an Iphone 5 and the second is from the exact same version but built for Android. 

The textfields are declared in the following way:

[lua]

usernameField = native.newTextField( display.contentCenterX,display.contentHeight*0.42 , display.contentWidth*0.66, 90, onUsername )

usernameField.font = native.newFont( fontName, 15 )

usernameField.text = “Användarnamn”

usernameField:setTextColor( 0, 0, 0, 255 )

usernameField.alpha = 0

screenGroup:insert( usernameField )

[/lua]

It should probably also be mentioned that this worked for iOS before I updated to Graphics 2.0.

Have anyone experienced something similar?

Thanks in advance!

I am experiencing the exact same strangeness for the last several daily builds, I started another post under daily builds here:

http://forums.coronalabs.com/topic/43467-nativenewtextfield-showing-in-wrong-place/

Really hope they can figure it out soon

As you said, this seems to be a bug in the most previous versions on all iOS devices. It actually worked when I downgraded to version 2100. Thanks!  :slight_smile:

This is interesting. Do you see the same issue on CL’s sample called NativeDisplayObjects?

Interesting discovery while I was dicking around with it… I tried out the NativeDisplayObject sample project and out of the box it worked perfectly.

 

Then I changed the sample’s config.lua file and doubled the width and height (from 320x480 to 640x960 like I have in my affected project) and that’s when things went crazy. Worked fine on simulator/Android but not on iOS, jumped to the right. Even more than if the anchor was defaulting to top left.

 

Can someone else change the width/height (to 640x960 for starters) on their projects and try to replicate?

Just an update:

Bug submitted and a developer by the name of ‘Tom’ says it should be patched in the next daily build or so.

I am experiencing the exact same strangeness for the last several daily builds, I started another post under daily builds here:

http://forums.coronalabs.com/topic/43467-nativenewtextfield-showing-in-wrong-place/

Really hope they can figure it out soon

As you said, this seems to be a bug in the most previous versions on all iOS devices. It actually worked when I downgraded to version 2100. Thanks!  :slight_smile:

This is interesting. Do you see the same issue on CL’s sample called NativeDisplayObjects?

Interesting discovery while I was dicking around with it… I tried out the NativeDisplayObject sample project and out of the box it worked perfectly.

 

Then I changed the sample’s config.lua file and doubled the width and height (from 320x480 to 640x960 like I have in my affected project) and that’s when things went crazy. Worked fine on simulator/Android but not on iOS, jumped to the right. Even more than if the anchor was defaulting to top left.

 

Can someone else change the width/height (to 640x960 for starters) on their projects and try to replicate?

Just an update:

Bug submitted and a developer by the name of ‘Tom’ says it should be patched in the next daily build or so.