Lines Matching defs:align

9 @module widget-position-align
13 ALIGN = 'align',
51 The `align` attribute is used to align a reference point on the widget, with
53 `align` expects has the following properties:
67 myWidget.set('align', {
71 @attribute align
75 align: {
80 A convenience Attribute, which can be used as a shortcut for the `align`
240 the widget's position-align related state changes.
255 Synchronizes the current `align` Attribute value to the DOM.
264 var align = this.get(ALIGN);
268 if (align) {
269 this._uiSetAlign(align.node, align.points);
278 widget's current `align` Attribute value to be synced to the DOM.
282 myWidget.align('body',
285 @method align
296 align: function (node, points) {
298 // Set the `align` Attribute.
304 // Sync the current `align` Attribute value to the DOM.
322 return this.align(node, [PositionAlign.CC, PositionAlign.CC]);
329 value, and passes it through the to the align attribute.
348 Updates the UI to reflect the `align` value passed in.
350 **Note:** See the `align` Attribute documentation, for the Object structure
354 @param {Node|String|null} [node] The node to align to, or null to indicate
361 Y.error('align: Invalid Points Arguments');
369 // No-op, nothing to align to.
430 Y.log('align: Invalid Points Arguments', 'info',
431 'widget-position-align');
503 Helper method, used to align the given point on the widget, with the XY page
509 @param {Number} x X page coordinate to align to.
510 @param {Number} y Y page coordinate to align to.
579 Y.log('align: Invalid Points Argument', 'info',
580 'widget-position-align');
617 Handles `alignChange` events by updating the UI in response to `align`
625 var align = e.newVal;
626 if (align) {
627 this._uiSetAlign(align.node, align.points);