iOS Question Resize Problem on Rotation


Active Member
Licensed User
I have added a webview to my page with this code:

Page1.RootPanel.AddView(WebView1, 0, 0dip, 100%x, 100%y)
I have this code added to the resize sub:

Private Sub Page1_Resize(Width As Int, Height As Int)
    WebView1.Width = Width
    WebView1.Height = Height
End Sub
If I remove the two lines in the resize sub, then when I rotate from portrait to landscape the text doesn't fill up the width of the screen. With the two lines of code in the resize, it does fill the screen width when rotating to lanscape, but the text is much larger. What am I doing wrong? I want the text in the webview to be the same size after rotating the device.