mirror of
https://github.com/google/blockly.git
synced 2026-01-20 15:27:09 +01:00
Dummy input right alignment (#3342)
* Fix dummy input alignment in geras.
This commit is contained in:
@@ -31,6 +31,29 @@ Blockly.defineBlocksWithJsonArray([ // BEGIN JSON EXTRACT
|
||||
"nextStatement": null,
|
||||
"style": "math_blocks"
|
||||
},
|
||||
{
|
||||
"type": "test_basic_dummy",
|
||||
"message0": "dummy input %1",
|
||||
"args0": [
|
||||
{
|
||||
"type": "input_dummy"
|
||||
}
|
||||
],
|
||||
"style": "math_blocks"
|
||||
},
|
||||
{
|
||||
"type": "test_basic_multiple_dummy",
|
||||
"message0": "first dummy %1 second dummy %2",
|
||||
"args0": [
|
||||
{
|
||||
"type": "input_dummy"
|
||||
},
|
||||
{
|
||||
"type": "input_dummy"
|
||||
}
|
||||
],
|
||||
"style": "math_blocks"
|
||||
},
|
||||
{
|
||||
"type": "test_basic_row",
|
||||
"message0": "row block %1",
|
||||
@@ -124,6 +147,64 @@ Blockly.defineBlocksWithJsonArray([ // BEGIN JSON EXTRACT
|
||||
"colour": 200,
|
||||
"tooltip": "Hello world."
|
||||
},
|
||||
{
|
||||
"type": "test_align_dummy_right",
|
||||
"message0": "text %1 long text %2",
|
||||
"args0": [
|
||||
{
|
||||
"type": "input_dummy",
|
||||
"align": "RIGHT",
|
||||
},
|
||||
{
|
||||
"type": "input_dummy",
|
||||
"align": "RIGHT",
|
||||
},
|
||||
],
|
||||
"style": "math_blocks"
|
||||
},
|
||||
{
|
||||
"type": "test_align_all",
|
||||
"message0": "text %1 long text %2 text %3 much longer text",
|
||||
"args0": [
|
||||
{
|
||||
"type": "input_dummy",
|
||||
"align": "LEFT",
|
||||
},
|
||||
{
|
||||
"type": "input_dummy",
|
||||
"align": "CENTRE",
|
||||
},
|
||||
{
|
||||
"type": "input_dummy",
|
||||
"align": "RIGHT",
|
||||
},
|
||||
],
|
||||
"style": "math_blocks"
|
||||
},
|
||||
{
|
||||
"type": "test_align_with_external_input",
|
||||
"message0": "text %1 long text %2 text %3 much longer text %4",
|
||||
"args0": [
|
||||
{
|
||||
"type": "input_dummy",
|
||||
"align": "RIGHT",
|
||||
},
|
||||
{
|
||||
"type": "input_dummy",
|
||||
"align": "CENTRE",
|
||||
},
|
||||
{
|
||||
"type": "input_dummy",
|
||||
"align": "LEFT",
|
||||
},
|
||||
{
|
||||
"type": "input_value",
|
||||
"name": "VALUE"
|
||||
},
|
||||
],
|
||||
"inputsInline": false,
|
||||
"style": "math_blocks"
|
||||
},
|
||||
{
|
||||
"type": "test_dropdowns_long",
|
||||
"message0": "long: %1",
|
||||
|
||||
@@ -1359,6 +1359,8 @@ var spaghettiXml = [
|
||||
<category name="Basic">
|
||||
<block type="test_basic_empty"></block>
|
||||
<block type="test_basic_empty_with_mutator"></block>
|
||||
<block type="test_basic_dummy"></block>
|
||||
<block type="test_basic_multiple_dummy"></block>
|
||||
<block type="test_basic_stack"></block>
|
||||
<block type="test_basic_row"></block>
|
||||
<block type="test_basic_value_to_stack"></block>
|
||||
@@ -1367,6 +1369,11 @@ var spaghettiXml = [
|
||||
<block type="test_basic_tooltips"></block>
|
||||
<block type="test_basic_javascript"></block>
|
||||
</category>
|
||||
<category name="Align">
|
||||
<block type="test_align_dummy_right"></block>
|
||||
<block type="test_align_all"></block>
|
||||
<block type="test_align_with_external_input"></block>
|
||||
</category>
|
||||
<category name="Drag">
|
||||
<label text="Drag each to the workspace"></label>
|
||||
<block type="text_print">
|
||||
|
||||
Reference in New Issue
Block a user