rmq
rmq copied to clipboard
Frame setters don't work right on iPad modal views
I've got a view that I'm applying this style to:
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.
Interesting, I'm actually working on an iPad app right now, so I'll reproduce and fix.
For now, I've just got it it going full screen.
Any word on this issue? Wondering if you could reproduce?
I haven’t tried yet, do you have a project that reproduces it in github? Save me some time creating one.
Todd Werth Founder, Software Designer, and Developer InfiniteRed
On Monday, July 14, 2014 at 7:04 AM, Mark Rickert wrote:
Any word on this issue? Wondering if you could reproduce?
— Reply to this email directly or view it on GitHub (https://github.com/infinitered/rmq/issues/79#issuecomment-48903166).
Here you go, sir: https://github.com/markrickert/rmq_ipad_issue_79
Looks like the problem fixes itself when the iPad is rotated, but the views are not initially styled properly.
I pulled down the sample app, and I think its the way you expect at least on the simulator