question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dummy input aligns only left

See original GitHub issue

Describe the bug

Dummy input currently does not align right (or center). Last working in 2.20190722.1

To Reproduce

  1. 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: 2019-10-24_09h47_36

2.20190722.1: 2019-10-24_09h50_17

Desktop (please complete the following information):

  • OS: Win10
  • Browser Firefox
  • Version 70.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
samelhusseinicommented, Oct 29, 2019

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

0reactions
pkestefrancommented, Oct 29, 2019

@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.

2019-10-29_17h22_52

While we are ok, as we use Geras only, the behavior should be consistent. Can you please check? Thank you.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found