Bug? resize problem?

John Decowski

Member
Licensed User
Longtime 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.
 

John Decowski

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

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

Albi

Active Member
Licensed User
Longtime User
i get the same issue, it occurs when things are anchored to the top, as well as when anchored to both (vertically)
 

Albi

Active Member
Licensed User
Longtime User
mwe attached. Uses a tab bar controller.
 

Attachments

  • resizeMWE.zip
    63.3 KB · Views: 176

Albi

Active Member
Licensed User
Longtime 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)
 

Attachments

  • resizeMWE.zip
    63.3 KB · Views: 196

Albi

Active Member
Licensed User
Longtime 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.
 
Top