Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mis-aligned text fields in iPad #110

Closed
jamonholmgren opened this issue May 16, 2013 · 4 comments · May be fixed by #125
Closed

Mis-aligned text fields in iPad #110

jamonholmgren opened this issue May 16, 2013 · 4 comments · May be fixed by #125

Comments

@jamonholmgren
Copy link

I'm building a tiny app for a construction company and having some problems with the text field.

skitch

As you can see, the text field editable area is off in iPad. In the iPhone, it looks fine:

screen shot 2013-05-16 at 10 38 39 am

Code here: https://github.com/jamonholmgren/formotion-ipad-alignment

For convenience, here's the relevant part:

form = Formotion::Form.new({
  sections: [{
    title: "Label",
    rows: [{
      title: "",
      name: "Textfield",
      type: :text,
      placeholder: "Textfield"
    }]
  }]
})

You'll note that my row label is blank. Even if I add one, it doesn't help:

screen shot 2013-05-16 at 10 45 07 am

On iPhone, it's fine:

screen shot 2013-05-16 at 10 46 00 am

@jamonholmgren
Copy link
Author

Note: on the first screenshot, I had:

row_height: 100

That's why the height is different.

@clayallsopp
Copy link
Owner

Yup, Formotion is basically untested for/not developed against iPads. PRs to fix it or make it better would be awesome, but it's not something I'm likely to get around to soon.

An earlier, similar issue: #49

@jamonholmgren
Copy link
Author

I'll work on a PR since I need it to work :). Thanks!

@jamonholmgren
Copy link
Author

Closing since I've moved on to my own ProMotion-form library. Thanks Clay!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants