Hide/Remove webView?
Added a webView to a window with
win1.add(webview);
Works fine.
How do I hide and or remove this webView to reveal the original window??
12 Answers
-
we have fixed the remove crash in head
-
try
win1.remove(webview);
does that work?
-
No win1.remove(webview); causes the app to crash.
I just tried win1.hide(webview);
THe web view goes away but the screen is then black.Thanks.
-
I have a feeling they're looking in to this.
Though it might not suit your needs for now (as it still takes up the space it used), but you could try webview.hide() or webview.visible = false
-
If you're able to build the SDK from the source on github, I think you'll find this has just been fixed ;)
-
No win1.remove(webview); causes the app to crash.
I just tried win1.hide(webview);
THe web view goes away but the screen is then black.Thanks.
-
webview.hide() leaves the screen black.
i would have thought the original screen would be visible?
What am I missing?Not set up to build via github.
It would appear that this is dealt with somehow in the Kitchen sink app but I surely can't find it. Its great to have all the examples in Kitchen sink but its very difficult to find the appropriate code for each example within the 198 js files. Sometimes code from more than one file is needed.
There must be a better way.
-
remove() just seems to not work. lets say I make a back button.
back.remove(); // doesn't do anything!!
win.remove(back); // crashes!!
-
win1.close();
That works for me.
-
win1.close();
That works for me.
-
win1.close(); works for me
-
win1.close(); works for me