Adobe-Runtime-Support icon indicating copy to clipboard operation
Adobe-Runtime-Support copied to clipboard

Problem with ViewStack and HTML component

Open chastings77 opened this issue 1 year ago • 1 comments

Using ViewStack with two views. The main view has text and the other view uses two HTML components. When we switch from the main to the HTML and then back, the HTML components are always visible on the main view and should not be.

I created a test to reproduce the issue and can be found here: https://github.com/chastings77/FlexTests/blob/main/HtmlTest.zip or attached: HtmlTest.zip

It is a small project created in Intellij.

We did not get the issue in air runtime 33.1.1.743. We upgraded to 33.1.1.821 and started seeing this issue. The environment is an Air Desktop app on Windows 10 Enterprise.

We do not have a workaround yet.

Here is the main view when the application first opens as we expect. image

Here is the HTML view as we expect: image

Here is the view when we go back to the selection view, notice the selection view is correct but the HTML components are still visible: image

We are expecting to see this view when we go back to the selection view image

chastings77 avatar Aug 12 '22 16:08 chastings77

This is a side-effect of the removal of the webkit engine from AIR .. if you're using more recent versions then it's going to be defaulting to the StageWebView component, which is always displayed above the normal stage... so to get the same effect, you would need to listen out for the view's show/hide events and manually add/remove the html controls from the stage.

We've been looking at enabling third-party html rendering engines to be hooked into AIR so that the earlier behaviour could be restored, for now though you could either hold at AIR version 33.1.1.743 to keep the webkit capability, or add the above workaround.

thanks

ajwfrost avatar Aug 16 '22 11:08 ajwfrost