[Fixed Position] Change UI pixel/grid toggle to checkbox

Change the input for grid units/pixels to a simple checkbox toggle from a
dropdown menu.

Add a new specialized AccessorMutator class to support this operation.
This commit is contained in:
Aaron Doubek-Kraft
2017-06-28 15:19:18 -07:00
parent 65500736da
commit 40c68e6399
3 changed files with 67 additions and 17 deletions

View File

@@ -212,21 +212,15 @@ define([
"control": "numberfield",
"description": "Resize object width",
"min": "1"
},
}
]
},
{
"items": [
{
"method": "setUnits",
"name": "Units",
"control": "menu-button",
"options": [
{
"name": "px",
"key": "px"
},
{
"name": "grid",
"key": "grid"
}
]
"property": "useGrid",
"name": "Snap to Grid",
"control": "checkbox"
}
]
},