TableChart frozenColumns doesn't work properly

46 views
Skip to first unread message

Jerry O'Brien

unread,
Dec 11, 2018, 9:46:05 PM12/11/18
to Google Visualization API
Has anyone gotten frozenColumns to work? Using a slightly modified snippet below, from the tableChart example page, the entire table scrolls, and the header line appears to freeze the selected number of columns, but the non-frozen header cells scroll out of sync with their columns in the body. After scrolling right a certain amount, the body begins to show the frozen behavior. When you scroll back to the left, there is a empty area to the left of the leftmost frozen column.


Is it me, or is this broken?

Daniel LaLiberte

unread,
Dec 11, 2018, 10:42:17 PM12/11/18
to Google Visualization API
That's interesting, surprising, and certainly a bug.  I thought it might be caused by the wrapping lines of text throwing off the calculations used during scrolling.  But it's even worse after I add this css rule: td { white-space: nowrap }

It seems to be working correctly if you change the version to '41', however, so maybe that will be enough of a workaround for you now.

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/7a7e0a3e-9f88-4328-897a-8b1bf383109e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

Jerry O'Brien

unread,
Dec 12, 2018, 1:42:28 PM12/12/18
to Google Visualization API
Thanks Daniel. FrozenColumns appears to be working correctly today without reverting to version 41. Was it fixed?

-- 

Daniel LaLiberte

unread,
Dec 12, 2018, 1:51:19 PM12/12/18
to Google Visualization API
Wha!!  I see it working now as well, for the 'current' version, and all versions.  Nothing was changed as far as I know.  I saw it broken this morning as you reported, and as I was testing each version before 'current', the first one that worked was '41'.  But maybe if I tried the others, they would have suddenly started working.  I have no idea why, and I'm completely mystified.  Perhaps there was some change in how css was delivered from the gstatic server?  

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.

For more options, visit https://groups.google.com/d/optout.

Jerry O'Brien

unread,
Apr 2, 2019, 9:18:21 PM4/2/19
to google-visua...@googlegroups.com
Hi Daniel,

This issue of the headers moving out of sync with the columns is happening again with frozen columns. The fiddle below still demonstrates it. 

Jerry O'Brien

Daniel LaLiberte

unread,
Apr 2, 2019, 9:53:39 PM4/2/19
to Google Visualization API
I see it also in macos, chrome.  Nothing has changed in the code but maybe the browsers have changed?



For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages