rmq icon indicating copy to clipboard operation
rmq copied to clipboard

Frame setters don't work right on iPad modal views

Open markrickert opened this issue 10 years ago • 6 comments

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.

screen shot 2014-07-04 at 9 36 08 am

markrickert avatar Jul 04 '14 13:07 markrickert

Interesting, I'm actually working on an iPad app right now, so I'll reproduce and fix.

infinitered avatar Jul 04 '14 16:07 infinitered

john-cho

For now, I've just got it it going full screen.

markrickert avatar Jul 04 '14 16:07 markrickert

Any word on this issue? Wondering if you could reproduce?

markrickert avatar Jul 14 '14 14:07 markrickert

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).

infinitered avatar Jul 14 '14 16:07 infinitered

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.

markrickert avatar Jul 14 '14 19:07 markrickert

I pulled down the sample app, and I think its the way you expect at least on the simulator image

squidpunch avatar Jul 28 '14 03:07 squidpunch