commit | 7a074587e4f9ae8d47e2e89a5eef619d703e01ff | [log] [tgz] |
---|---|---|
author | Avery Pennarun <apenwarr@gmail.com> | Fri Mar 29 22:56:23 2013 -0400 |
committer | Avery Pennarun <apenwarr@gmail.com> | Fri Mar 29 22:56:23 2013 -0400 |
tree | 0a869e47b05873d8c8a2a2ddb22452162dd8eb3b | |
parent | b8b5699229357a7931384bb6ae03747e7b764b6c [diff] |
Fix datatable scrollbars, and handle window resizes correctly. If you set gviz's options.height property - even, ironically, if you set it redundantly to the height of the container, which ought to have been obvious - then gviz will make the headers fixed at the top of the container even when you're scrolling, which is what we want (ie. like "freeze rows" in a spreadsheet). We also add a listener on resize events and elegantly auto-resize the chart or table when it happens.