Re-position blockly elements

49 views
Skip to first unread message

Laurens Bogaardt

unread,
Apr 20, 2016, 8:11:17 AM4/20/16
to Blockly
I can drag my blockly elements all over the place, even outside the visible workspace, if I'm not careful. Can I restrict the position to remain within positve x- and positive y-positions? Otherwise, can I add a button which re-positions the first element to x =0; and y = 0;?

Neil Fraser

unread,
Apr 20, 2016, 8:34:30 AM4/20/16
to blo...@googlegroups.com
Yes, absolutely.  Turn off the scrollbars in the config options.  Demo:
https://blockly-demo.appspot.com/static/demos/fixed/index.html


On 20 April 2016 at 05:11, Laurens Bogaardt <lbog...@gmail.com> wrote:
I can drag my blockly elements all over the place, even outside the visible workspace, if I'm not careful. Can I restrict the position to remain within positve x- and positive y-positions? Otherwise, can I add a button which re-positions the first element to x =0; and y = 0;?

--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages