Controls set to StandardGap form the bottom of a view are hidden by tab zone

  1. 4 years ago

    Tim J

    10 Dec 2014 Pre-Release Testers, Xojo Pro Phoenix, AZ USA (desication ce...

    If you set up a Screen with a tab container and place controls on a View locked to Bottom + StandardGap, they will be hidden by the tab area of the screen when your app runs in both the Simulator and a real device.

    Feedback Case #37245

  2. Ulrich B

    11 Dec 2014 Pre-Release Testers, Xojo Pro Europe (Germany, Berlin) · xo...

    Don't lock them to the bottom of the view but to the BottomLayoutGuide. This is the valid border that changes when you show a tab.

  3. Tim J

    11 Dec 2014 Pre-Release Testers, Xojo Pro Phoenix, AZ USA (desication ce...

    I didn't lock them there, the layout editor did.

    If we're going to have to manually double check each decision that the layout editor makes, that's going to suck big time.

  4. Norman P

    11 Dec 2014 Xojo Inc https://guykawasaki.com/the_ar...

    If you drag a control down to the bottom there can / will be several possible guides presented as there are several valid positions.
    BottomLayoutGuide.Top - stdGap
    BottomLayoutGuide.Top
    Bottom - stdGap
    Bottom

  5. Michel B

    11 Dec 2014 Pre-Release Testers RubberViews.com
    Edited 4 years ago

    @Tim J I didn't lock them there, the layout editor did.

    If we're going to have to manually double check each decision that the layout editor makes, that's going to suck big time.

    In my experience, you cannot really trust the IDE to visually implant your controls like you do in Desktop. It tends to use standard constraints that are not always optimum for what you need.

    Drop the control where you need, then look at every constraint, and most importantly decide what the control should be relative to.

    The constraints are not extremely straighforward, but once you get the hang at their relative nature, it becomes a great tool. My current app scales with very little tweaking from iPhone 4 to iPad with rotation smooth as silk.

  6. Tim J

    11 Dec 2014 Pre-Release Testers, Xojo Pro Phoenix, AZ USA (desication ce...

    @Ulrich B Don't lock them to the bottom of the view but to the BottomLayoutGuide. This is the valid border that changes when you show a tab.

    I just did this for the button and it's still hidden by the Tab area.

    I also tried Parent.BottomLayoutGuite + StdGap

  7. Tim J

    11 Dec 2014 Pre-Release Testers, Xojo Pro Phoenix, AZ USA (desication ce...

    @Norman P If you drag a control down to the bottom there can / will be several possible guides presented as there are several valid positions.
    BottomLayoutGuide.Top - stdGap
    BottomLayoutGuide.Top
    Bottom - stdGap
    Bottom

    Except we don't know what we're going to get since the Inspector info for the control does;t update until you drop the control.

  8. Michel B

    11 Dec 2014 Pre-Release Testers RubberViews.com

    @Tim J I just did this for the button and it's still hidden by the Tab area.

    I also tried Parent.BottomLayoutGuite + StdGap

    BottomLayoutGuide.Top -20 should do it.

  9. Tim J

    11 Dec 2014 Pre-Release Testers, Xojo Pro Phoenix, AZ USA (desication ce...

    Thanks, Michel. The secret was BottomLayoutGuide.Top

  10. last week

    Chris H

    Jul 11 Pre-Release Testers, Xojo Pro, XDC Speakers Grand Rapids Michigan

    BottomLayoutGuide.Top isn't working for me when I have a tool button as well.
    There needs to be a programatic way to set this without having to guess at the pixel stack at the bottom.

or Sign Up to reply!