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