From 12ff96674b39a319dd4398fada8b40db7b02b8f1 Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Fri, 17 May 2024 19:27:14 +0000 Subject: [PATCH] fix: comment handle position in RTL (#8151) --- core/bubbles/textinput_bubble.ts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/core/bubbles/textinput_bubble.ts b/core/bubbles/textinput_bubble.ts index 2784b5cb6..346bc8413 100644 --- a/core/bubbles/textinput_bubble.ts +++ b/core/bubbles/textinput_bubble.ts @@ -201,16 +201,11 @@ export class TextInputBubble extends Bubble { this.textArea.style.width = `${widthMinusBorder - 4}px`; this.textArea.style.height = `${heightMinusBorder - 4}px`; + this.resizeGroup.setAttribute('y', `${heightMinusBorder}`); if (this.workspace.RTL) { - this.resizeGroup.setAttribute( - 'transform', - `translate(${Bubble.DOUBLE_BORDER}, ${heightMinusBorder}) scale(-1 1)`, - ); + this.resizeGroup.setAttribute('x', `${-Bubble.DOUBLE_BORDER}`); } else { - this.resizeGroup.setAttribute( - 'transform', - `translate(${widthMinusBorder}, ${heightMinusBorder})`, - ); + this.resizeGroup.setAttribute('x', `${widthMinusBorder}`); } super.setSize(size, relayout);