Yea. I agree with your sentiment. And I have had the ādiscussionā with the the powers that be at Xojo. But I canāt wait for 2023 r1 or probably later. I need a fix now.
On the bright side I like how Ricardo is fixing things that were previously considered ānot a bugā.
Extending what @AlbertoD posted I wrote an extends function:
Public Sub PositionWebDialog(Extends d as WebDialog, Top as integer, Left as Integer)
d.ExecuteJavascript( "$('#" + d.ControlID + "_modal div:first').css({'top': '" + top.ToString + "px', 'left': ' " + Left.ToString + "px', 'position': 'absolute'});" )
End Sub
Call it like this from a button press for example:
Var Left As Integer = Me.Left
Var top As Integer = Me.Top + Me.Height
Var dlg As New WebDialog1
dlg.PositionWebDialog( top, Left )
dlg.Show