mirror of
https://github.com/google/blockly.git
synced 2026-01-31 04:30:11 +01:00
Fix lastDummyAlign in Block Factory.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user