gridSize

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the gridSize to <pixelSize>
Summary

Specifies the size of squares in the drag grid.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
set the gridSize to 10 -- objects are aligned to a 10-pixel mesh
Values
NameTypeDescription
Value

The gridSize is a positive integer. By default, the gridSize property is set to 2.

RelatedKeyword: integer, point, top
Constant: left
Property: height, centered, width, grid
Glossary: object, property
Description

Use the gridSize property to align objects in a coarse or fine grid.

If the grid property is set to true, any object the user moves or resizes is moved or resized to the nearest point on the grid. If the object is moved, its top and left are multiples of the gridSize. If the object is resized, its height and width are multiples of the gridSize.

If the grid is false, the setting of the gridSize property has no effect.