Hello, when I load a B4XDialog dialog1, everything works fine, it looks good in size and everything.
If I open the B4XDialog dialog2, it looks fine and everything is fine.
If I open dialog1 again, it opens in a different size, very small, as if it changed 100%x, I have tried everything, and I can't get them to work well.
They are CustomDialogs, for example...
private Sub GoDataSheet(mp As Map)
'Dim ID As Int= mp.Get("ID")
Dim Name As String = mp.Get("Name")
Try
MediaPlayer.Play
Dim p As B4XView = xui.CreatePanel("")
p.LoadLayout("Datasheet")
p.SetLayoutAnimated(0, 0, 0, 100%x, 600dip)
......
setDialogStyle(DataSheetDialog)
.......
DataSheetDialog.ShowCustom(p, "", "", "")
DataSheetDialog.Base.Top=100
Catch
Log(LastException)
End Try
End Sub
If I open the B4XDialog dialog2, it looks fine and everything is fine.
If I open dialog1 again, it opens in a different size, very small, as if it changed 100%x, I have tried everything, and I can't get them to work well.
They are CustomDialogs, for example...
private Sub GoDataSheet(mp As Map)
'Dim ID As Int= mp.Get("ID")
Dim Name As String = mp.Get("Name")
Try
MediaPlayer.Play
Dim p As B4XView = xui.CreatePanel("")
p.LoadLayout("Datasheet")
p.SetLayoutAnimated(0, 0, 0, 100%x, 600dip)
......
setDialogStyle(DataSheetDialog)
.......
DataSheetDialog.ShowCustom(p, "", "", "")
DataSheetDialog.Base.Top=100
Catch
Log(LastException)
End Try
End Sub