D
Deleted member 103
Guest
Hi,
Something is wrong, but I do not know what it could be.
On the iPad, the position of panel "pnlHaeder" is correct, on the iPhone it appears offset down.
In Designerscript I have:
and in Page1_resize I have to test the following:
Log:
screenshot iPad:
screenshot iPhone:
Something is wrong, but I do not know what it could be.
On the iPad, the position of panel "pnlHaeder" is correct, on the iPhone it appears offset down.
In Designerscript I have:
B4X:
'Alle View in Panel "pnlscrView"
pnlHaeder.Top=0
pnlHaeder.Height=25
pnlHaeder.SetLeftAndRight(0, pnlscrView.Width)
lblHeader1.SetLeftAndRight(pnlHaeder.Width * 0.13, pnlHaeder.Width * 0.46) :lblHeader1.Height=pnlHaeder.Height
lblHeader2.SetLeftAndRight(pnlHaeder.Width * 0.48, pnlHaeder.Width * 0.75) :lblHeader2.Height=pnlHaeder.Height
lblHeader3.SetLeftAndRight(pnlHaeder.Width * 0.75, pnlHaeder.Width * 0.99) :lblHeader3.Height=pnlHaeder.Height
scrView.SetLeftAndRight(0, pnlscrView.Width)
scrView.SetTopAndBottom(pnlHaeder.Bottom, pnlscrView.Height)
and in Page1_resize I have to test the following:
B4X:
Private Sub Page1_Resize(Width As Int, Height As Int)
...
pnlHaeder.top = 0
pnlHaeder.Left = 20
scrView.Color = Colors.Green
Log("2.pnlHaeder.Top= " & pnlHaeder.Top)
End Sub
Log:
Application_Start
InitApp
2
Application_Active
Page1_Resize
2.pnlHaeder.Top= 0
screenshot iPad:
screenshot iPhone:
Last edited by a moderator: