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.


    A few things with 1.6

    Pythonista
    1.6 console flex bounds
    2
    2
    2483
    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.
    • Phuket2
      Phuket2 last edited by

      @omz , some things I have noticed,

      1. Unless 1.6 works differently with flex at runtime, there seems to be a problem. I am setting a scrollview's flex to 'WH' in code. What worked in 1.5, does not work now. I had to set the frame explicitly. I tried a few things to get flex working, but it did not work.

      2. I cannot see a place to change the console font. Not sure if I can't find it or you have not got around to it yet.

      3. I love the new flexibility of defining the screen size, but bounds and frame attr a lot more important to understand now. I stumbled through before and it worked, a lot less forgiving now. My virtual list that ran fine under 1.5, needed tweaking around these issues. Not bad, just going to be a migration transition for some people like me :)

      1 Reply Last reply Reply Quote 0
      • omz
        omz last edited by

        Unless 1.6 works differently with flex at runtime, there seems to be a problem. I am setting a scrollview's flex to 'WH' in code. What worked in 1.5, does not work now. I had to set the frame explicitly. I tried a few things to get flex working, but it did not work.

        Setting the flex attribute of a top-level view (i.e. one that you call present() on) doesn't have any effect, and it never had. The size of a view that is presented in 'sheet' style used to be fixed in 1.5 (regardless of what you set as flex, it would be something around 540x500), and in 1.6, it reflects the size of the view's frame/bounds.

        I'm aware that this may require minor code changes in some cases, but I don't see any way around that, without giving up the flexibility of having differently-sized sheets, which I find very useful.

        I cannot see a place to change the console font. Not sure if I can't find it or you have not got around to it yet.

        Didn't get to that yet. If you want a bigger font, you can use console.set_font for now:

        console.set_font('Menlo', 20)
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by NodeBB Forums | Contributors