mirror of
https://github.com/google/blockly.git
synced 2026-01-06 08:30:13 +01:00
fix: comment handle position in RTL (#8151)
This commit is contained in:
@@ -201,16 +201,11 @@ export class TextInputBubble extends Bubble {
|
|||||||
this.textArea.style.width = `${widthMinusBorder - 4}px`;
|
this.textArea.style.width = `${widthMinusBorder - 4}px`;
|
||||||
this.textArea.style.height = `${heightMinusBorder - 4}px`;
|
this.textArea.style.height = `${heightMinusBorder - 4}px`;
|
||||||
|
|
||||||
|
this.resizeGroup.setAttribute('y', `${heightMinusBorder}`);
|
||||||
if (this.workspace.RTL) {
|
if (this.workspace.RTL) {
|
||||||
this.resizeGroup.setAttribute(
|
this.resizeGroup.setAttribute('x', `${-Bubble.DOUBLE_BORDER}`);
|
||||||
'transform',
|
|
||||||
`translate(${Bubble.DOUBLE_BORDER}, ${heightMinusBorder}) scale(-1 1)`,
|
|
||||||
);
|
|
||||||
} else {
|
} else {
|
||||||
this.resizeGroup.setAttribute(
|
this.resizeGroup.setAttribute('x', `${widthMinusBorder}`);
|
||||||
'transform',
|
|
||||||
`translate(${widthMinusBorder}, ${heightMinusBorder})`,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
super.setSize(size, relayout);
|
super.setSize(size, relayout);
|
||||||
|
|||||||
Reference in New Issue
Block a user