The table is not designed for resizing as it relies on its dimensions on the time of drawing. Its dimension are controlled by the user specified options 'width' and 'height'.
If you wish to resize the table then call the table.draw again with the new parameters. If this becomes widely used I may consider adding this internally to the table code. However, in any case, the draw method will be invoked again as partial execution is not possible. ChartMan On Wed, Jul 15, 2009 at 7:20 AM, Markw65 <[email protected]> wrote: > > If I create a visualization.Table, and *dont* set height or width, > then it resizes as its container resizes. This is good, but not if I > want a scrolling table... > > If I set the height, but not the width, I would like it to resize > horizontally as I resize the container, but it doesnt (in fact, > looking at the html in firebug, its clear that it sets the widths of > each column to fixed values). > > Finally, if I set the height, and set the width to "100%", I almost > get what I want - except that the column headers dont resize. You can > see what I mean here: > > http://maps.myosotissp.com/bugs/table_resize.html > > As you resize the browser window, the data columns auto resize - but > the column headers dont. > > The problem occurs both in the "1" and "1.1" visualization libraries. > > I have a sort-of fix, which is to call table.draw(data, > {height:<whatever>,width:100%}) from within my body.onresize handler. > This works well, except that the column headers dont get resized until > the user stops resizing the window, whereas the data columns are > resized in real time. You can see this version here: > > http://maps.myosotissp.com/bugs/table_resize.html#fixit > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en -~----------~----~----~----~------~----~------~--~---
