On 20/02/13 14:40, Mar wrote:
> Hi guys!
>
> I'm trying to lock the screen orientation for all my app. Then I add at
> the beginning of my code these lines:
>
> var portraitLock = screen.mozLockOrientation("portrait"); if
> (portraitLock) {
> console.log("Orientation locked to portrait");
> }
>
> It doesn't work and I don't have any idea what I'm doing wrong then I'm
> asking you for any advice.
What do you mean by "it doesn't work"? The log isn't shown? The screen
isn't locked? The screen isn't locked the way you want?
Also, I think it would be better for you to specify the screen
orientation you want in the manifest directly so the window manager will
take care of that.
Cheers,
--
Mounir
_______________________________________________
dev-webapps mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-webapps