Dummy input aligns only left
See original GitHub issueDescribe the bug
Dummy input currently does not align right (or center). Last working in 2.20190722.1
To Reproduce
- In blockly factory create a block similar to :
Blockly.Blocks['block_type'] = {
init: function() {
this.appendDummyInput()
.appendField("something long");
this.appendDummyInput()
.setAlign(Blockly.ALIGN_CENTRE)
.appendField("a");
this.appendDummyInput()
.setAlign(Blockly.ALIGN_RIGHT)
.appendField("a");
this.setColour(230);
this.setTooltip("");
this.setHelpUrl("");
}
};
Expected behavior
Fields in Dummy input should respect selected alignment.
Screenshots
Current master:
2.20190722.1:
Desktop (please complete the following information):
- OS: Win10
- Browser Firefox
- Version 70.0
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Align labels in form next to input - Stack Overflow
My goal would be that labels are aligned next to inputs to the right side. Here is picture example of desired result. enter...
Read more >HTML | <input> align Attribute - GeeksforGeeks
Attribute Values: left: It sets the alignment of image to the left. it is a default value.
Read more >How to Left, Right & Center Align Text in HTML - HubSpot Blog
Learn how to left, right, and center align text in HTML so that you can ... Lorem Ipsum is simply dummy text of...
Read more >Help with left align? - math mode - LaTeX Stack Exchange
The amsmath package should be loaded only once. In the example I used \lipsum to provide some mock text and show the alignment....
Read more >How to Right Align a Button with CSS - W3docs
In this tutorial, we'll demonstrate how to align a button to the right with CSS. ... left; } </style> </head> <body> <div> <p>...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @pkestefran. The current POR is for Zelos is to not support external value inputs (only inline) like other renderers. We made the call to only add the logic in geras and thrasos. I don’t see a reason why the minimalist renderer shouldn’t at least take somehow take into account its input’s alignment properties (albeit it is a lower priority for us right now). @rachel-fenichel
I’ve filed an issue to track this: https://github.com/google/blockly/issues/3361
@samelhusseini I played a bit with test blocks in playground and noticed that the alignment is unfortunately still not respected in Zelos and Minimalist renderers. Geras and Thrasos are ok.
While we are ok, as we use Geras only, the behavior should be consistent. Can you please check? Thank you.