There are two states for the table1) you can not pass 'width' and 'height' and get a normal html table acting as an html table should.2) you can specify 'width' and/or 'height' which creates a more complicated element with panes, scroll bars and a floating header.
If you go with (1) then you can resize and get the desired effect. If you go with (2) then you should fix the table width and height and then resize it manually. Both have their pros an cons ... ChartMan On Wed, Jul 15, 2009 at 5:36 PM, Markw65 <[email protected]> wrote: > > > > On Jul 15, 12:05 am, ChartMan <[email protected]> wrote: > > The table is not designed for resizing as it relies on its dimensions on > the > > time of drawing. > > Fair enough. But in that case, the bug is that it is resizing the data > columns when it shouldnt be :-) > > > Its dimension are controlled by the user specified options 'width' and > > 'height'. > > Right. Thats what Im using... > > > > > If you wish to resize the table then call the table.draw again with the > new > > parameters. > > Again... thats my workaround - but the table still looks odd while its > parent div is being resized because the data columns resize fluidly, > but the column headers remain fixed. > > > 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. > > And yet... html tables do exactly what I want, with no help. *Your* > table does exactly what I want, if I specify neither height nor width. > > I think I see what the issue is - in order to prevent the header from > scrolling, you've actually created it as a separate table (but only > when "height" is specified). But then you have to manually force the > header columns to be the same width as the data columns. > > But it seems to me that "partial execution" would be very possible - a > "postResize" method would only need to recalculate the header column > widths - the rest of the table is taking care of itself... > > Mark > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
