Text placement on native input controls
Posted: Sun Sep 17, 2017 12:27 am
Hi,
I reworked this stack from a LC lesson. I wanted to see if the discrepancy of the placement of text in a native control between iPhone and Android was true. I appears there is a difference. I don't think this was always true and I don't know when it started. Android places the text in the same place regardless if the control is "input" or "multiline". On the other hand, iPhone places the text in a different vertical position for "multiline" than is does for "input". The "input" text placement is different than where the text is placed on Android. It looks like the "multiline" text placement on iPhone is the same as the "multiline" and "input" on Android. Has anybody else see this and if so how are you handling it when you develop the same app for both platforms? I would rather not have to have 2 separate stacks with the rect of the controls in different locations in order to compensate.
I reworked this stack from a LC lesson. I wanted to see if the discrepancy of the placement of text in a native control between iPhone and Android was true. I appears there is a difference. I don't think this was always true and I don't know when it started. Android places the text in the same place regardless if the control is "input" or "multiline". On the other hand, iPhone places the text in a different vertical position for "multiline" than is does for "input". The "input" text placement is different than where the text is placed on Android. It looks like the "multiline" text placement on iPhone is the same as the "multiline" and "input" on Android. Has anybody else see this and if so how are you handling it when you develop the same app for both platforms? I would rather not have to have 2 separate stacks with the rect of the controls in different locations in order to compensate.