Skip to content

Commit

Permalink
Add grid to code demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
NeilFraser committed Mar 11, 2015
1 parent d13df0d commit b06c6b3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion demos/code/code.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,12 @@ Code.init = function() {

var toolbox = document.getElementById('toolbox');
Blockly.inject(document.getElementById('content_blocks'),
{media: '../../media/',
{grid:
{spacing: 25,
length: 3,
colour: '#ccc',
snap: true},
media: '../../media/',
rtl: rtl,
toolbox: toolbox});

Expand Down

0 comments on commit b06c6b3

Please sign in to comment.