– This bug ONLY affects Apple iOS RETINA displays (AFAIK) –
Manifests when NOT using scaling. Works fine in Corona Simulator, all devices. Unfortunately, using scaling isn’t an option. Did not manifest on any android device tested on.
Simply put this into a main.lua file and build it and watch as the bouncing boxes mock your desire to put a textField on the screen where you want it once you build it.
Observe the differences between the Corona simulator (Mac, of course) and the results on the device or in the xCode simulator. Tested on iPod Touch 4th gen & New iPad.
Works fine in xCode simulator for iphone.
But bug manifests in xCode simulator for iPhone (Retina).
[code]
local tfWidth = (display.contentWidth/2)
local tfHeight = display.contentHeight/12
tf1 = native.newTextField(
50,
50,
tfWidth,
tfHeight
)
tf2 = native.newTextField(
50,
display.contentCenterY,
tfWidth,
tfHeight
)
tf1:setReferencePoint(display.CenterLeftReferencePoint)
tf2:setReferencePoint(display.CenterLeftReferencePoint)
local function bounce1()
transition.to(tf1, {time=3000, x = display.contentCenterX})
transition.to(tf1, {time=3000, delay=3000, x=50,onComplete=bounce1})
end
local function bounce2()
transition.to(tf2, {time=3000, y = display.contentCenterY - 150 })
transition.to(tf2, {time=3000, delay=3000, y = display.contentCenterY,onComplete=bounce2})
end
bounce1()
bounce2()
[/code] [import]uid: 13784 topic_id: 29940 reply_id: 329940[/import]