03-20-2012 12:49 PM
Hi,
if I open an alert or a file dialog (extension) in WebWorks it is often (not always) opened in background. That means the user can't see the dialig. Only while closing you can see it a little bit. I think it has something to do with focus because it's only a problem when opening it in a button onclick.
any ideas how to prevent this?
regards
03-20-2012 02:09 PM
The "customAskAsync" sample from documentation lags of the same problem. Is this a general bug? I didn't got this issues with OS 1.0.
https://bdsc.webapps.blackberry.com/html5/apis/bla
03-20-2012 05:08 PM
Do you have code that can reliably recreate the issue? I have a similar issue but I can't reliably recreate it which means it isn't a great test case. If you do, open an issue for the webworks team so they can have a look at it. http://us.blackberry.com/developers/resources/issu
05-10-2012 03:54 PM
I'm facing the same problem. We have quite some webwork apps in development but now we just have to postpone the releases. We tested it and the following dialogs have the problem:
- A dialog generated from an air extension
- javascript alert dialogs
- BlackBerry webworks custom dialogs
We tried to fix it by changing focus in javascript of the current window (we tried a lot) but sometimes the dialogs still show up behind the app.
The problem is quite hard to reproduce. We had a test app with a button to show a webworks custom dialog. Sometime when you start the app the dialog will show up behind and sometimes it just shows fine. We just started, pressed button, closed, started, etc. Nothing changed during that time on the system but still randomly the app decided to show the dialog behind the app.
We even had a time when we thought we fixed it since it worked 80 times and on 81 it showed up behind again..
Playbook OS 2.0.1.358
Would be great if someone could fix it or explain how we can fix it.
Thanks.
Regards,
Sander
05-11-2012 01:39 AM
hi Sander,
do you have a loadingScreen while starting your application? Try to remove it. This "solved" the problem for me.
There is an issue for this in github:
https://github.com/blackberry/WebWorks-TabletOS/is
regards
05-11-2012 05:48 AM
Levion, thanks. That seems to fix it, however now we can't show the loadingscreen anymore. Well, most users probably won't find that a problem ![]()
Thanks again.
Regards,
Sander