Fix lastDummyAlign in Block Factory.

This commit is contained in:
Neil Fraser
2015-06-12 18:19:53 -07:00
parent ab7984fa75
commit 7e90591a21

View File

@@ -125,8 +125,9 @@ function formatJson(code, rootBlock) {
if (lastInput && lastInput.type == 'input_dummy') {
var fields = lastInput.getInputTargetBlock('FIELDS');
if (fields && getFieldsJson_(fields).join('').trim() != '') {
if (lastInput.align) {
JS.lastDummyAlign = lastInput.align;
var align = lastInput.getFieldValue('ALIGN');
if (align != 'LEFT') {
JS.lastDummyAlign = align;
}
args.pop();
message.pop();