Skip to content
Snippets Groups Projects
Commit 843182cd authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Add comment about when auto layout doesn't work

parent 9d41f09e
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,7 @@ module.exports = function ({id, opcode, params, value, x, y}, monitorIndex) {
// Simple layout if x or y are undefined
// @todo scratch2 has a more complex layout behavior we may want to adopt
// @todo e.g. this does not work well when monitors have already been moved
if (isUndefined(x)) x = PADDING;
if (isUndefined(y)) y = PADDING + (monitorIndex * (PADDING + MONITOR_HEIGHT));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment