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

Two issues in landscape iPad with 1.1 #37

Open
ryanwaggoner opened this issue Jul 11, 2013 · 2 comments
Open

Two issues in landscape iPad with 1.1 #37

ryanwaggoner opened this issue Jul 11, 2013 · 2 comments

Comments

@ryanwaggoner
Copy link

I still see two issues with landscape on iPad (and yes, I'm using 1.1):

  1. Fields are still being scrolled way too high (see image).
  2. I have a full-screen scrollview, so contentSize is getting set to 1034x768, which somehow leaves me with a 10px gap at the bottom of the screen when textField has focus (see image)

ios simulator

@ryanwaggoner
Copy link
Author

For my own purposes, I seem to have fixed this by setting kCalculatedContentPadding = 0, and dropping lines 240-243. Now my field is always centered vertically, which it seems like would be the preferred behavior. What am I missing?

@michaeltyson
Copy link
Owner

Hmm, interesting; what happens if you manually set your scroll view's contentSize to whatever it should be? It looks like you've got some additional chrome views in there that are messing with the content frame calculations, but if you set the content size yourself, it'll use that instead of trying to work it out by itself.

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

No branches or pull requests

2 participants