Permalink
Browse files

gallery-2012.04.18-20-14 juandopazo gallery-user-patch-2532141

  • Loading branch information...
1 parent f00470d commit 03782d35e9eb9483dc6a91a84a6628ceda9fe9c0 YUI Builder committed Apr 18, 2012
@@ -0,0 +1,27 @@
+# Dialog Build Properties
+
+# As long as the 'builder' project is cloned to the default folder
+# next to the 'yui3-gallery' project folder, the 'builddir' property does not
+# need to be changed
+#
+# If the 'builder' project is checked out to an alternate location, this
+# property should be updated to point to the checkout location.
+builddir=../../../builder/componentbuild
+
+# The name of the component. E.g. event, attribute, widget
+component=gallery-user-patch-2532141
+
+# The list of files which should be concatenated to create the component.
+# NOTE: For a css component (e.g. cssfonts, cssgrids etc.) use component.cssfiles instead.
+# component.jsfiles=dialog.js, dialogHelperClass.js, dialogSubComponentClass.js
+component.jsfiles=resize-constrain-patch.js
+
+# The list of modules this component requires. Used to set up the Y.add module call for YUI 3.
+component.requires=resize
+
+# The list of modules this component supersedes. Used to set up the Y.add module call for YUI 3.
+component.supersedes=
+
+# The list of modules that are optional for this module. Used to set up the Y.add module call for YUI 3.
+component.optional=
+
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- YUI 3 Gallery Component Build File -->
+<project name="User Patch 2532141" default="local">
+ <description>User Patch 2532141 Build File</description>
+ <property file="build.properties" />
+ <import file="${builddir}/3.x/bootstrap.xml" description="Default Build Properties and Targets" />
+</project>
@@ -0,0 +1,11 @@
+
+// The constrain attribute should check if the value isn't "view"'
+// before passing it to Y.one
+Y.Plugin.ResizeConstrained.ATTRS.constrain = {
+ setter: function (value) {
+ if (value && (value instanceof Y.Node || value.nodeType || (Y.Lang.isString(value) && value !== 'view'))) {
+ value = Y.one(value);
+ }
+ return value;
+ }
+};

0 comments on commit 03782d3

Please sign in to comment.