Bug? resize problem?

Discussion in 'iOS Bugs & Wishlist' started by John Decowski, Feb 27, 2015.

  1. John Decowski

    John Decowski Member Licensed User

    i think i found a bug. When your in a phone call with the little green bar at top, when you return to your app it doesn't compensate for the bar and the apps "Zero point" shifts. Causing a white gap the width of the bar. During the resize event you would have to move your app to a negative top to bring it up.
     
  2. John Decowski

    John Decowski Member Licensed User

    This code I tried works but imo its simply a work around.
    Code:
    Private Sub Page1_Resize(Width As Int, Height As Int)

    If Height < (ScreenHeight - 20Then
        pnlTop.Top = -
    20 ' must have stupid phone bar at top
    Else
        pnlTop.Top = 
    0
    End If
    End Sub
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    I'm unable to reproduce it. I've created a layout with a panel that is anchored to all sides. During a call when the green bar is visible that panel was resized automatically as expected.
     
  4. Albi

    Albi Active Member Licensed User

    i get the same issue, it occurs when things are anchored to the top, as well as when anchored to both (vertically)
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    Please create a small example and upload it.
     
  6. Albi

    Albi Active Member Licensed User

    mwe attached. Uses a tab bar controller.
     

    Attached Files:

  7. Erel

    Erel Administrator Staff Member Licensed User

    What is not working properly in this example?
     
  8. Albi

    Albi Active Member Licensed User

    when phone calls are made, the label at the top moves down too far creating a white space. The phone call info (green bar) is present during a call, along with an extra blank white space between that and the top label.
    I have tried a few different things to get it to work. This attached example uses anchoring to both (I think the one above anchored only to top)
     

    Attached Files:

  9. Erel

    Erel Administrator Staff Member Licensed User

    It is a mistake to set the vertical anchor to BOTH in this case. Setting it to BOTH means that the distances from the label to the page top and to the page bottom edge are constant. This is not what you want here. It should be TOP.

    I see the gap. Note that it doesn't happen with NavigationController. It will be checked.
     
  10. Albi

    Albi Active Member Licensed User

    Great, thanks!
    I had it as top, but saw you mention the panel anchored to all sides so tried that in this case too.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice