The textfield seems to be incorrect positioned about 5 px both x and y on iPhone.
The attached image is from the simulator but I have also checked it on an iPhone 4s
The textfield seems to be incorrect positioned about 5 px both x and y on iPhone.
The attached image is from the simulator but I have also checked it on an iPhone 4s
can you show some code Hans?
i think you should do onloaded="if(device.mobile, mul(y,2));" or something like that with the stage scale
Tuur
Its a bug. Iphone does not work with border.
Check the image.
<plugin name="text1" zorder="23" url="plugins/textfield.swf" keep="false" border="true" borderwidth="45" padding="30"
bordercolor="0xffffff" backgroundcolor="0xcfcfcf" align="righttop" x="30" y="65"
width="440" autoheight="true" selectable="false" background="true" onclick="tween(plugin[text1].y,-600,1);"
html="data:text1"
/>
If I just remove border="true" borderwidth="45" the position is correct and works the same on iPad and iPhone.
What actually happens on the iphone is that on the side it aligns along the border instead of the textfield.
but at top it moves the textfield up the same size as the border.
In this case border is set to 10 pixels so it actually moves the textfield 10 pixels to the left but at the top it moves it upwards 10 pixels.
Very weird.
Hi,
thanks - right, this is a bug related to the stagescaling (when stagescale is different to 1.0 like on mobiles).
It will be fixed in the next release.
Best regards,
Klaus
Thanks
Hans
Don’t have an account yet? Register yourself now and be a part of our community!