-
Notifications
You must be signed in to change notification settings - Fork 428
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
Inconsistent margins on devices wider than iPhone 4 #259
Comments
The safest way to fix this would be to make use of different margins in the example app, so that we can visually verify that things look ok. |
@jlnr what about |
@jlnr my idea to move all |
We don't want to disable |
Modularising the pod won't hurt, but the individual parts should still look consistent afterwards. So I think that's an unrelated issue actually :) |
@jlnr a bit related :) moving all into modules, we don't need to fix all custom views in |
We have noticed inconsistent left and right margins on iPhone 6+ and iPad, and tracked them down to this spot:
RETableViewManager/RETableViewManager/RETableViewCell.m
Lines 171 to 177 in 1c71a41
I guess this was written under the assumption that the default left margin for table cells is always 10.0, which is only true on the smaller iPhone models. We have worked around this issue in our fork by changing the method like this:
jlnr@90fb0b3
I guess one could also fix the inconsistency by resizing
self.textLabel
, which iOS provides by default, to match the size and margins of RETableViewManager’s custom views. But we want our app to look as native as possible.This is not ready for a Pull Request because the
cellOffset
of 10.0 also appears in other cell types which we don't use and haven't tested, and I don't know if we have broken the way thecontentViewMargin
works.If you compare the before/after screenshots of the example on iPhone 6+ and iPad, it really looks much more consistent. This is possibly related to issues #249 and #115.
iPhone 6 Plus, before
iPhone 6 Plus, after
iPad, before
iPad, after
The text was updated successfully, but these errors were encountered: