mirror of
https://github.com/google/blockly.git
synced 2026-01-08 01:20:12 +01:00
fix: creating comments in RTL (#8153)
This commit is contained in:
@@ -143,7 +143,7 @@ export class RenderedWorkspaceComment
|
|||||||
*/
|
*/
|
||||||
getBoundingRectangle(): Rect {
|
getBoundingRectangle(): Rect {
|
||||||
const loc = this.getRelativeToSurfaceXY();
|
const loc = this.getRelativeToSurfaceXY();
|
||||||
const size = this.view.getSize();
|
const size = this.view?.getSize() ?? this.getSize();
|
||||||
let left;
|
let left;
|
||||||
let right;
|
let right;
|
||||||
if (this.workspace.RTL) {
|
if (this.workspace.RTL) {
|
||||||
|
|||||||
Reference in New Issue
Block a user