ClassesWorkspaceblockly.workspace_class.getwidth_methodOn this pageblockly > Workspace > getWidth Workspace.getWidth() method Returns the horizontal offset of the workspace. Intended for LTR/RTL compatibility in XML. Not relevant for a headless workspace. Signature: getWidth(): number; Returns: number Width.