Closed JacobBovee closed 4 years ago
I believe this is a translation issue. Must be easy to fix. Notice the A is at the end instead of middle.
@ganicke you know how to fix this?
No puedo repro en Chromo de Windows 10...
Also, scrape the event function from core/input.cpp, replace the block text with the Spanish from Crowdin, and throw it into playground -
enum Button {
A = 0,
B = 1,
//% block="A+B"
AB = 2
};
/**
* Events are functions that take a function (lambda) as the last argument
*/
//% color="#AA278D"
namespace testme {
/**
* Do something when a button (A, B or both A+B) is pushed down and released again.
* @param button the button that needs to be pressed
* @param body code to run when event is raised
*/
//% help=input/on-button-pressed weight=85 blockGap=16
//% blockId=device_button_event block="al presionarse el botón|%NAME|"
//% parts="buttonpair"
export function onButtonPressed( button: Button, handler: () => void) {
}
}
Zooming in is fine in playground however zooming out far enough gives you a little trouble with the text overflowing.
Hmm, try defining a block with a long English string and see if it behaves similarly. I don't have touch screen at the moment to try. I can't get it to squish with the zoom controls. If it happens with a English string too then it's a blocks render problem.
Thanks @ganicke We will look into this.
@ganicke I also found it to be cutoff with long english strings.
The zoom on this chrome os laptop is very slow as well which may be part of the issue if it can't be reproduced.
Is this a Blockly thing maybe?
Looks like a blocky thing, showed up in an arcade tutorial with a long extension block:
This is text bleeding issue in blockly. Take a look if this fixed in latest.
Tested zooming in and out with long strings and this doesn't repro for me with latest blockly--but I don't know if this was a Chromebook-only bug? I also can't repro on live microbit (Chrome, Windows 10).
Fixed it was everywhere int he past.
Describe the bug When zooming on blocks in Spanish the text seems to be too large and gets cut off.
To Reproduce Steps to reproduce the behavior:
Expected behavior Blocks should be recomputed based on the size of the text
Screenshots
Spanish:
English:
Desktop (please complete the following information):