Ticket #2532141 (accepted defect)

Reporter


Juan Ignacio Dopazo
Opened: 04/12/12
Last modified: 09/19/12
Status: accepted
Type: defect

Owner


Eduardo Lundgren
Target Release: BACKLOG
Priority: P3 (normal)
Summary: Constrain Resize to the viewport fails
Description:

When trying to constrain a Resize instance to the viewport using the ResizeConstrained plugin, the ResizeConstrained plugin assumes the 'view' value for the constrain attribute is a CSS selector and
runs it through Y.one().

Type: defect Observed in Version: 3.5.0
Component: Resize Severity: S3 (normal)
Assigned To: Eduardo Lundgren Target Release: BACKLOG
Location: Priority: P3 (normal)
Tags: Relates To:
Browsers: N/A
URL:
Test Information:

The setter for the constrain attribute (see http://_Sgithub.com/yui/yui3/blob/master/src/resize/js/resize-constrain.js#L74) looks like this:


function(v) {
if (v && (isNode(v) || isString(v) || v.nodeType)) {
v = Y.one(v);
}
return v;
};

It should check if the value is "view" before passing it to Y.one:

function (value) {
if (v && (v.nodeType || (isString(v) && v !== VIEW)) {
v = Y.one(v);
}
return v;
};

Change History

Eduardo Lundgren

YUI Contributor

Posted: 04/30/12
  • milestone changed to 3.6.0
  • priority changed to P3 (normal)
  • status changed from new to accepted

Jenny Donnelly

YUI Developer

Posted: 07/23/12
  • milestone changed from 3.6.0 to 3.NEXT

Did not make the cut for 3.6.0. Moving to 3.NEXT.

Jenny Donnelly

YUI Developer

Posted: 09/19/12
  • milestone changed from 3.NEXT to BACKLOG

Moving from 3.NEXT to BACKLOG.