[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

@@ -21,8 +21,8 @@
*****************************************************************************/
define(
['./AccessorMutator', './ResizeHandle'],
function (AccessorMutator, ResizeHandle) {
['./AccessorMutator', './ResizeHandle', './UnitAccessorMutator'],
function (AccessorMutator, ResizeHandle, UnitAccessorMutator) {
// Index deltas for changes in order
var ORDERS = {
@@ -122,9 +122,10 @@ define(
*/
this.height = new AccessorMutator(element, 'height');
this.useGrid = new UnitAccessorMutator(this);
this.index = index;
this.elements = elements;
this.useGrid = element.useGrid;
}
/**