Re: [Sugar-devel] WebActivity : Resizing a canvas object to the screen size ?

2014-01-27 Thread Manuel QuiƱones
2014-01-26 laurent bernabe : > I've solved my problem by integrating JQuery, thanks to the Shim section of > RequireJS, and by calling it in activity.js You also have an example of doing the same without JQuery in Clock web activity. -- .. manuq .. ___

Re: [Sugar-devel] WebActivity : Resizing a canvas object to the screen size ?

2014-01-26 Thread laurent bernabe
I've solved my problem by integrating JQuery, thanks to the Shim section of RequireJS, and by calling it in activity.js => loader.js __ shim: { ... jquery: { exports: 'jquery' } }, paths: { ... jquery: 'jq

[Sugar-devel] WebActivity : Resizing a canvas object to the screen size ?

2014-01-26 Thread laurent bernabe
Hello everyone, Some times ago, I've asked how to deal with the fact that my laptop screen size is rather 16/9 than a 4/3 size. And I was, among other advises, advised to adapt the game size to the screen size. I am conviced that it the way to do : but how to get the client size from inside my act