Re: [Sugar-devel] Web activities canvas element

2013-10-17 Thread Manuel Quiñones
2013/10/10 laurent bernabe laurent.bern...@gmail.com: Hello, 2013/10/10 Manuel Quiñones ma...@laptop.org 2013/10/9 laurent bernabe laurent.bern...@gmail.com: Hello, *) I am wondering whether I can safely replace, in an index.html file of a web activity, the div id=canvas/div with

Re: [Sugar-devel] Web activities canvas element

2013-10-17 Thread laurent bernabe
Hello Manuel, thanks for your answer, I forgot that javascript also can control width and height of the page, behind the scene. What I tried in my LearnChess activity (which I started as a web activity and finally went on with a GTK one), is to reuse one the predefined screen css media (inside a

Re: [Sugar-devel] Web activities canvas element

2013-10-10 Thread laurent bernabe
Hello, 2013/10/10 Manuel Quiñones ma...@laptop.org 2013/10/9 laurent bernabe laurent.bern...@gmail.com: Hello, *) I am wondering whether I can safely replace, in an index.html file of a web activity, the div id=canvas/div with canvas id=canvas/canvas ? Because the library I am

Re: [Sugar-devel] Web activities canvas element

2013-10-10 Thread laurent bernabe
Otherwise, I thought, as my laptop may have wider screen than OLPC, I can try to restrict the activity zone (toolbar + canvas zone) with css (even if that task can be hard) and have it centered on my screen. And maybe add a bit of Javascript in order to restrict mouse interaction to the emulated

Re: [Sugar-devel] Web activities canvas element

2013-10-10 Thread Daniel Narvaez
It might be helpful to change the sugar-runner window size, see the dev environment documentation on developer.sugarlabs.org On Thursday, 10 October 2013, laurent bernabe wrote: Otherwise, I thought, as my laptop may have wider screen than OLPC, I can try to restrict the activity zone

Re: [Sugar-devel] Web activities canvas element

2013-10-10 Thread laurent bernabe
Are you talking about options from this page : http://developer.sugarlabs.org/dev-environment.md.html ? Regards 2013/10/10 Daniel Narvaez dwnarv...@gmail.com It might be helpful to change the sugar-runner window size, see the dev environment documentation on developer.sugarlabs.org On

Re: [Sugar-devel] Web activities canvas element

2013-10-10 Thread laurent bernabe
I've changed the prefs.json file, in order to set a resolution of 1200x900 on HDMI1, but it does not seem to have changed anything. { output: HDMI1, resolution: 1200x900 } Width still takes the whole screen width. Same for height. (I've stopped and restarted osbuild shell). 2013/10/10

Re: [Sugar-devel] Web activities canvas element

2013-10-10 Thread Daniel Narvaez
Yeah the resolution option. On Thursday, 10 October 2013, laurent bernabe wrote: Are you talking about options from this page : http://developer.sugarlabs.org/dev-environment.md.html ? Regards 2013/10/10 Daniel Narvaez dwnarv...@gmail.com javascript:_e({}, 'cvml', 'dwnarv...@gmail.com');

Re: [Sugar-devel] Web activities canvas element

2013-10-10 Thread laurent bernabe
I've checked at my screen size : it is a 16/9 1366x766. Maybe that is why the width has not changed (and I was wrong, height was a little less with my new json file). Though, the XO-1 has a height of 900. So, I don't know yet what could be the best compromise in my case. Maybe trying with a

[Sugar-devel] Web activities canvas element

2013-10-09 Thread laurent bernabe
Hello, *) I am wondering whether I can safely replace, in an index.html file of a web activity, the div id=canvas/div with canvas id=canvas/canvas ? Because the library I am using need a real canvas element. *) Also, if I can use a real canvas element, how can set its size to the remaining size

Re: [Sugar-devel] Web activities canvas element

2013-10-09 Thread Manuel Quiñones
2013/10/9 laurent bernabe laurent.bern...@gmail.com: Hello, *) I am wondering whether I can safely replace, in an index.html file of a web activity, the div id=canvas/div with canvas id=canvas/canvas ? Because the library I am using need a real canvas element. You just put your canvas

Re: [Sugar-devel] Web activities canvas element

2013-10-09 Thread laurent bernabe
Thanks, I'll watch at ClockWeb activity. Regards 2013/10/10 Manuel Quiñones ma...@laptop.org 2013/10/9 laurent bernabe laurent.bern...@gmail.com: Hello, *) I am wondering whether I can safely replace, in an index.html file of a web activity, the div id=canvas/div with canvas