I have been experiencing this weird behaviour in BigSur and Monterey when I close and reopen an HtmlDialog. Sorry, but I cannot upload the screenshot as the forum is not allowing me for some reason.
Now if I close and reopen the dialog in the Ruby console
dialog.close
dialog.show
the weird grey bar appears.
I have tested it on my old mac (BigSur Intel) and the new one (Monterey M1 Pro) and both have the same issues. It does not happen on Windows (from memory, as I do not have access to a Windows machine at the moment)
I have played a bit with the HtmlDialog options, but I could not find a combination that works.
I would suspect this meta tag. This is for mobile devices only, BTW, and I do not believe desktop SketchUp can run on any mobile devices, … yet. Meaning that any mobile SketchUp apps do not support Ruby extensions.
Just an FYI, this meta tag is totally unnecessary for UI::HtmlDialog class as it uses the Chromium Embedded Framework on both MacOS and Windows. This was previously only for the old UI::WebDialog class that used the MSIE BrowserControl on Windows.
On OSX, you’ll want to re-initialize the HtmlDialog and set the html and action callbacks each time you open it. That should fix this issue and also others that you may not have discovered yet.