mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-28 22:10:31 -04:00
Use calculated value for RTL offset
This commit is contained in:
parent
5d71c82203
commit
464946d358
1 changed files with 1 additions and 1 deletions
|
@ -250,7 +250,7 @@ Blockly.FieldTextInput.prototype.resizeEditor_ = function() {
|
|||
// In RTL mode block fields and LTR input fields the left edge moves,
|
||||
// whereas the right edge is fixed. Reposition the editor.
|
||||
if (this.sourceBlock_.RTL) {
|
||||
xy.x += bBox.width;
|
||||
xy.x += width;
|
||||
xy.x -= div.offsetWidth;
|
||||
}
|
||||
// Shift by a few pixels to line up exactly.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue