Ticket #2529846 (closed defect)

Reporter


Jeff Pihach
Opened: 01/19/11
Last modified: 04/17/12
Status: closed
Type: defect
Resolution: fixed

Owner


Luke Smith
Target Release: 3.5.0
Priority: P3 (normal)
Summary: Unable to set DataTable width
Description:

When instantiating a new DataTable the width property is only applied to the bounding box not to the table itself.

Type: defect Observed in Version: 3.3.0
Component: DataTable Severity: S3 (normal)
Assigned To: Luke Smith Target Release: 3.5.0
Location: Library Code Priority: P3 (normal)
Tags: datatable Relates To:
Browsers: N/A
URL:
Test Information:

YUI().use('datatable', function(Y) {

var cols = ["Date","Credits","Amount", "Note", "Reference Id"],
data = [
{Date:"January 23, 2010", Credits:"3", Amount:"$10.00", Note:"Reference on", "Reference Id":"asdfasdffsd"},
{Date:"January 23, 2010", Credits:"3", Amount:"$10.00", Note:"Reference on", "Reference Id":"asdfasdffsd"},
{Date:"January 23, 2010", Credits:"3", Amount:"$10.00", Note:"Reference on", "Reference Id":"asdfasdffsd"}
];

var table = new Y.DataTable.Base({
columnset: cols,
recordset: data,
width: '600px'
});

table.render("div");

table.get('boundingBox').one('table').setStyle('width', '600px'); //Workaround - comment out to see bug.
});

Change History

Jenny Donnelly

YUI Developer

Posted: 01/19/11
  • location changed to Library Code
  • milestone changed to 3.NEXT
  • priority changed to P3 (normal)
  • status changed from new to accepted

Luke Smith

YUI Contributor

Posted: 02/18/11

Luke Smith

YUI Contributor

Posted: 03/3/11
  • milestone changed from 3.NEXT to 3.4.0
  • status changed from assigned to accepted

Table width assignment has always come with gotchas, but I'll have a look at propagating the value from the boundingBox to the table.

Luke Smith

YUI Contributor

Posted: 06/24/11
  • milestone changed from 3.4.0 to 3.NEXT

Luke Smith

YUI Contributor

Posted: 11/9/11
  • milestone changed from 3.NEXT to 3.5.0

Luke Smith

YUI Contributor

Posted: 12/14/11
  • estimated changed from 0 to 0.25
  • remaining changed from 0 to .25

This will probably go into sprint 3, but I might pull it into sprint 2 if I'm miraculously productive.

Luke Smith

YUI Contributor

Posted: 01/26/12
  • status changed from accepted to checkedin

Luke Smith

YUI Contributor

Posted: 01/26/12
  • completed changed from 0 to 0.25
  • remaining changed from 0.25 to 0

Jenny Donnelly

YUI Developer

Posted: 04/17/12
  • resolution changed to fixed
  • status changed from checkedin to closed

Closing out bugs checked in to 3.5.0.