omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    did_rotate

    Pythonista
    beta custom-view rotation
    2
    3
    3010
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Webmaster4o
      Webmaster4o last edited by

      Is there any way to add a did_rotate function to a custom view class that is called when the screen dimensions change because I rotated my device?

      Phuket2 1 Reply Last reply Reply Quote 0
      • Phuket2
        Phuket2 @Webmaster4o last edited by

        @Webmaster4o, you have it already.
        def layout(self):
        But if you present a 'sheet' in 1.5 for example, you are not called.because the view size/bounds is the same.

        1 Reply Last reply Reply Quote 1
        • Webmaster4o
          Webmaster4o last edited by

          Right. Forgot about that one.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB Forums | Contributors