:|<br>yep, that is a bug<br><br>the problem is this line: this.container.appendChild( this.canvas );<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">


from what I understand this if block is supposed to get you the context<br>
of canvas that is already in the DOM. The this.container.appendChild(..)<br>
adds a new canvas element w/ the same ID. Is this what you intend?<br>
</blockquote>
no!, my intention was to add the previously created canvas element as a child of the specified container, this is useful if are not using inline canvas declaration...<br><br>this line must me inside the &quot;if block&quot; around line 627<br>

<br>thanks for reporting the bug.<br><br>btw. should we use <a href="http://launchpad.net">launchpad.net</a> fro reporting bugs?<br><br><div class="gmail_quote">2009/9/4 Bryan Berry <span dir="ltr">&lt;<a href="mailto:bryan@olenepal.org">bryan@olenepal.org</a>&gt;</span><br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Felipe,<br>
<br>
on line 636 of jquery.karma.js<br>
<a href="http://git.sugarlabs.org/projects/karma/repos/mainline/blobs/master/js/jquery.karma.js#line636" target="_blank">http://git.sugarlabs.org/projects/karma/repos/mainline/blobs/master/js/jquery.karma.js#line636</a><br>


<br>
                if ( this.canvas.getContext ) {<br>
                        this.ctx = this.canvas.getContext(&quot;2d&quot;);<br>
                        this.container.appendChild( this.canvas );<br>
              }<br>
<br>
from what I understand this if block is supposed to get you the context<br>
of canvas that is already in the DOM. The this.container.appendChild(..)<br>
adds a new canvas element w/ the same ID. Is this what you intend?<br>
<br>
It produces a result that is not why expected. My drawing operations<br>
happen in an area completely unrelated to my actual canvas.<br>
<font color="#888888"><br>
<br>
<br>
--<br>
Bryan W. Berry<br>
Technology Director<br>
OLE Nepal, <a href="http://www.olenepal.org" target="_blank">http://www.olenepal.org</a><br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Felipe López Toledo<br>