Sie sind nicht angemeldet.

HansNyb

Profi

  • »HansNyb« ist der Autor dieses Themas

Beiträge: 1 063

Wohnort: Denmark

Beruf: Photographer

  • Nachricht senden

1

Freitag, 20. März 2015, 12:08

Incorrect Textfield position on iPhone

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
»HansNyb« hat folgendes Bild angehängt:
  • iphone-position.jpg

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

2

Freitag, 20. März 2015, 17:23

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 *thumbsup*

HansNyb

Profi

  • »HansNyb« ist der Autor dieses Themas

Beiträge: 1 063

Wohnort: Denmark

Beruf: Photographer

  • Nachricht senden

3

Samstag, 21. März 2015, 16:04

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.
»HansNyb« hat folgendes Bild angehängt:
  • iphone-position2.jpg

HansNyb

Profi

  • »HansNyb« ist der Autor dieses Themas

Beiträge: 1 063

Wohnort: Denmark

Beruf: Photographer

  • Nachricht senden

4

Sonntag, 22. März 2015, 08:48

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.
»HansNyb« hat folgendes Bild angehängt:
  • iphone-position3.jpg

5

Sonntag, 22. März 2015, 09:11

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

HansNyb

Profi

  • »HansNyb« ist der Autor dieses Themas

Beiträge: 1 063

Wohnort: Denmark

Beruf: Photographer

  • Nachricht senden

6

Sonntag, 22. März 2015, 09:36

Thanks



Hans

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »HansNyb« (22. März 2015, 15:47)


Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden