iFrame won't size to HTMLViewer

I’m trying to display a Google Calendar on an iOSView with nothing else on it but an HTMLViewer sized to fit the view. The page does load correctly but the height and width of the displayed calendar are less than half of what they should be (Im getting 414x896 on the iPhone 11 simulator with nav bar visible). I’m trying to dynamically scale them to fit the device.

In the Activate event:

[code]
Var mywidth As Text = Self.ContentSize.Width.ToText(Locale.Current,"##0")
Var myheight As Text = Self.ContentSize.Height.ToText(Locale.Current,"##0")

Var html As Text = “<iframe src=”“https://calendar.google.com/calendar/embed?height=” + myheight + _
“&wkst=1&bgcolor=%23ffffff&ctz=America%2FPhoenix&src=Z3Jhbml0ZXBlYWt1dUBnbWFpbC5jb20&color=%23E67C73&showTitle=0&mode=AGENDA&showTz=0&showCalendars=0&showTabs=0&showPrint=0&showNav=0&showDate=0"” style="“border-width:0"” width=""" + mywidth + _
“”" height=""" + myheight + “”" frameborder="“0"” scrolling="“no”">"

Declare Sub loadHTML Lib “UIKit.Framework” Selector “loadHTMLString:baseURL:” (obj_id As Ptr, html As CFStringRef, url As Ptr)
loadHTML(CalendarHTMLViewer.Handle, html, Nil)[/code]