Discussion:
2.5.2: DataTable column width errors with TabView Tab's
Chris Curran
2008-05-29 14:54:36 UTC
Permalink
I know the yui developers are probably sick and tired of hearing about
DataTable and column widths, but.... there are still problems.

Test case is here: http://www.planetcurran.com/test004.html

Click on tab 2. Yikes! If you click on any of the column headers (to
sort), everything snaps to normal and is fine.

2.5.0 and 2.5.1 do not have this bug.

Bug report filed:
https://sourceforge.net/tracker/?func=detail&atid=836476&aid=1977911&group_id=165715


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ydn-javascript/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/ydn-javascript/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:ydn-javascript-digest-***@public.gmane.org
mailto:ydn-javascript-fullfeatured-***@public.gmane.org

<*> To unsubscribe from this group, send an email to:
ydn-javascript-unsubscribe-***@public.gmane.org

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
y_lsmith
2008-05-29 16:47:49 UTC
Permalink
Post by Chris Curran
I know the yui developers are probably sick and tired of hearing about
DataTable and column widths, but.... there are still problems.
Test case is here: http://www.planetcurran.com/test004.html
Click on tab 2. Yikes! If you click on any of the column headers (to
sort), everything snaps to normal and is fine.
2.5.0 and 2.5.1 do not have this bug.
https://sourceforge.net/tracker/?func=detail&atid=836476&aid=1977911&group_id=165715
Chris,

Thanks much for filing the bug.

You're right on both counts. This is new unwanted behavior in 2.5.2,
and we *are* sick and tired of hearing about DT column width issues :)

Actually, this behavior was manifest in 2.5.1 when the width patch was
applied. It's too bad this wasn't brought up until now. In our
testing, we noted that rendering DataTables in hidden containers did
collapse the columns (because the offsetwidths for minWidth validation
were not available). But we failed to note that unpatched 2.5.1
didn't do this for non-scrollable tables rendered in hidden containers.

The root of the behavior is that all columns are configured with a
default minWidth of 10px, and the offsetwidth is reported as 0 when
hidden, so DT attempts to push out the width to the minWidth. There's
a much longer story behind this of course.

At any rate, I'm testing a patch now (sounds familiar, I know).

Luke


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ydn-javascript/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/ydn-javascript/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:ydn-javascript-digest-***@public.gmane.org
mailto:ydn-javascript-fullfeatured-***@public.gmane.org

<*> To unsubscribe from this group, send an email to:
ydn-javascript-unsubscribe-***@public.gmane.org

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
Satyam
2008-05-29 17:11:40 UTC
Permalink
----- Original Message -----
Post by y_lsmith
At any rate, I'm testing a patch now (sounds familiar, I know).
But we appreciate that you are doing it, it's not easy issue, we also know
that.

Satyam


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ydn-javascript/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/ydn-javascript/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:ydn-javascript-digest-***@public.gmane.org
mailto:ydn-javascript-fullfeatured-***@public.gmane.org

<*> To unsubscribe from this group, send an email to:
ydn-javascript-unsubscribe-***@public.gmane.org

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
Chris Curran
2008-05-29 17:29:18 UTC
Permalink
Luke,
Post by y_lsmith
It's too bad this wasn't brought up until now.
I didn't know about it until now. There's so much activity here I
suppose I missed that discussion thread...
Post by y_lsmith
At any rate, I'm testing a patch now (sounds familiar, I know).
The work-a-round you posted in the bug report seems to be doing the
trick. I appreciate the (typical) quick response and will report any
oddities attributed to the work-a-round as I encounter them...

thanks again & cheers,
Chris


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ydn-javascript/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/ydn-javascript/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:ydn-javascript-digest-***@public.gmane.org
mailto:ydn-javascript-fullfeatured-***@public.gmane.org

<*> To unsubscribe from this group, send an email to:
ydn-javascript-unsubscribe-***@public.gmane.org

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
y_lsmith
2008-05-30 14:47:14 UTC
Permalink
Post by Chris Curran
Luke,
Post by y_lsmith
It's too bad this wasn't brought up until now.
I didn't know about it until now. There's so much activity here I
suppose I missed that discussion thread...
Post by y_lsmith
At any rate, I'm testing a patch now (sounds familiar, I know).
The work-a-round you posted in the bug report seems to be doing the
trick. I appreciate the (typical) quick response and will report any
oddities attributed to the work-a-round as I encounter them...
thanks again & cheers,
Chris
Chris,

My apologies if it seems I implied I hold you responsible for
reporting (at least) column width anomalies! Not so. I appreciate
that you *do* bring items such as this up here.

As noted in the bug report, the most robust way to account for
minWidths and auto widths (set widths should be just fine) for
scrolling and non-scrolling DataTables rendered in hidden containers
is to call myDataTable._syncColWidths() when the table container is
made visible.

Hope this helps,
Luke


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ydn-javascript/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/ydn-javascript/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:ydn-javascript-digest-***@public.gmane.org
mailto:ydn-javascript-fullfeatured-***@public.gmane.org

<*> To unsubscribe from this group, send an email to:
ydn-javascript-unsubscribe-***@public.gmane.org

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/

Loading...