clarkyblade / blockly

Automatically exported from code.google.com/p/blockly
0 stars 0 forks source link

Rendering exeption #110

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Go to /apps/code/en.html
2. Create an 'if' nested in an 'if'.
3. Switch to XML tab.  Switch back to Blocks tab.

What is the expected output? What do you see instead?

Expect outer 'if' to fully enclose the inner 'if'.  Instead, get error on 
console: Component already rendered

Original issue reported on code.google.com by neil.fra...@gmail.com on 4 Feb 2013 at 2:54

GoogleCodeExporter commented 9 years ago

Original comment by s...@google.com on 6 Feb 2013 at 6:12

GoogleCodeExporter commented 9 years ago
Can you please paste the XML that you used? This works for me - see attached 
screenshot and xml:

<xml>
  <block type="controls_if" inline="false" x="314" y="73">
    <statement name="DO0">
      <block type="controls_if" inline="false"></block>
    </statement>
  </block>
</xml>

Original comment by s...@google.com on 6 Feb 2013 at 6:20

Attachments:

GoogleCodeExporter commented 9 years ago
Synced to latest, pasted in the above XML, rendered as attached.
I'm using Firefox 18 on OSX.

Original comment by neil.fra...@gmail.com on 7 Feb 2013 at 1:41

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Revision: 629
Author:   scr@google.com
Date:     Sat Feb  9 00:13:14 2013
Log:      Fix rerendering code in "code" app.

Change render() to renderBlocks() so goog.ui.Component's assertion
is not hit and the blocks rerender for Firefox.

TBR=neil.fraser@gmail.com
BUG=110

Review URL: https://codereview.appspot.com/7307080
http://code.google.com/p/blockly/source/detail?r=629

Modified:
 /trunk/apps/code/common.js

Original comment by s...@google.com on 9 Feb 2013 at 8:15