From 11360ba46c97005a81ec7350608e1855a6390f74 Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Tue, 24 Feb 2015 11:40:11 -0800 Subject: [PATCH] [Fixed Position] Add comments Add in-line documentation for WTD-882. --- platform/features/layout/src/elements/ResizeHandle.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/platform/features/layout/src/elements/ResizeHandle.js b/platform/features/layout/src/elements/ResizeHandle.js index bd9a3687e9..72c5963192 100644 --- a/platform/features/layout/src/elements/ResizeHandle.js +++ b/platform/features/layout/src/elements/ResizeHandle.js @@ -16,6 +16,11 @@ define( minHeight = minHeight || 0; return { + /** + * Get/set the x position of the lower-right corner + * of the handle-controlled element, changing size + * as necessary. + */ x: function (value) { if (arguments.length > 0) { element.width = Math.max( @@ -25,6 +30,11 @@ define( } return element.x + element.width; }, + /** + * Get/set the y position of the lower-right corner + * of the handle-controlled element, changing size + * as necessary. + */ y: function (value) { if (arguments.length > 0) { element.height = Math.max(