Weird bbUI Resolution Flags bug on WebWorks 2.0 (Cordova)? #998

johnbiiibs opened this Issue Dec 24, 2013 · 2 comments


None yet
2 participants


I've been getting this weird bug with the Resolution Flags (bb.device.is720x720 for example on Q10).

See screenshot below:
screen shot 2013-12-25 at 4 11 59 am

If I use bb.device.is720x720, the condition fails, hence moving to the final "catching else" clause; in my screenshot it's CHOICE: E.

But if I use:
screen shot 2013-12-25 at 4 21 04 am
Things would work out fine.

I think it's causing issues such as this one (Yes I am experiencing the same issue on a Z30 on the latest version of BB 10):
Issue #975

Any ideas on what might have caused this?

I am using:
bbUI for BB10 VERSION:
WebWorks 2.0 (the one with Cordova)

Z10 OS Version:
Q10 OS Version:

Thanks and regards,

Turns out that the resolution flags on line 66, all return false.

The window.innerHeight and window.innerWidth both return "346"; meaning the Resolution Flags are not getting the proper values.

So what I did was to initialise the resolution flags somewhere else, mainly the doLoad() function:

Not much of a workaround but it works.

I think this might have something to do with WebWorks 2.0, replacing the "webworksready" event with the cordova "deviceready" event.

@tneil tneil pushed a commit that referenced this issue May 12, 2014

Tim Neil updates for issue #1002 and #998 18fe6ed

tneil commented May 12, 2014

I've checked in what I believe is a fix for this issue into the 10.3 branch where I'm doing my current work.

tneil closed this May 12, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment