I have this code in Application_Start:
However, the layout adjustments are not shown. But if I put the same two lines in a click handler, it works correctly.
This tells me that at the time the layout is loaded in the first line, it is not ready yet.
I have also tried to put the lines in page_resize but that doesn't work either.
Where or how should I make these small adjustments?
B4X:
pnlBottomMain.LoadLayout("bottompanel")
pnlBottomMain.Height = pnlBottom.height-2
pnlBottomMain.Top = MainPanel.Height - pnlBottomMain.Height
However, the layout adjustments are not shown. But if I put the same two lines in a click handler, it works correctly.
This tells me that at the time the layout is loaded in the first line, it is not ready yet.
I have also tried to put the lines in page_resize but that doesn't work either.
Where or how should I make these small adjustments?