infinitered / infinitered/rmq

Frame setters don't work right on iPad modal views

Open
#79 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
305
Forks
51
PR merge metrics
No merged PRs in 30d

Description

I've got a view that I'm applying this style to:

``` ruby
def container(st)
st.frame = {
l: 10,
fr: 10,
h: 320,
}
st.background_color = color.green
end
end
```

When I run it in a fullscreen modal on iPhone, it works great. But when I run it as a `UIModalPresentationFormSheet` modal on iPad it doesn't calculate the parent view size correctly and things get all wonky. I tried rotating the device to get it to reapply the styles, but to no avail.

![screen shot 2014-07-04 at 9 36 08 am](https://cloud.githubusercontent.com/assets/139261/3482500/c682f548-0380-11e4-9224-fef5db5c7435.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the container(st) method and its st.frame assignment, then reproduce the fullscreen iPhone and UIModalPresentationFormSheet iPad cases described in the report. Done means frame setters calculate the parent view size correctly for the iPad modal instead of producing the reported layout errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, ruby
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.