Subject: Re: [visualization-api] Table set maximum height



There may be limitations regarding use of max-height.  I don't have confidence regarding that question because I haven't tested it much.   But there may be a way to work with what it can do.  Here is a variation of your example that appears to work correctly, but I moved your container to a wrapper, and changed the max-height to just height.  Then the table_div just has height:100%.     https://jsfiddle.net/dlaliberte/Lw5h7c2y/
It even shrinks if you have fewer rows than needed to fill the height.
On Tue, Jan 10, 2017 at 2:28 PM, Suzanne Paley <suzanne.paley@xxxxxxxxx> wrote:
I know the Table visualization takes parameters for height and width, but what I really want is a parameter for max-height.  I've tried not supplying a height parameter and just constraining the height of the enclosing div, but then if the table exceeds the div dimensions in both directions, I need to scroll down to the bottom of the table in order to find the horizontal scrollbar (this is on Chrome on a Linux desktop, and I don't have a horizontal scroll gesture -- I need to user the scrollbar), and the table header won't be fixed.  Example at https://jsfiddle.net/0mgg48bz/.  I can get the scroll behavior I want by specifying my max-height as the height option when drawing the table, but then if the data would ordinarily take up much less vertical space than my max-height, it expands to fill it, which I don't want.  Is there a way to get it to only take up as much space as needed, unless that space would exceed my max dimensions, and then have sensible scrollbars?

--
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-visualization-api+unsubscribe@xxxxxxxxxxxxxxxx.
To post to this group, send email to google-visualization-api@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/7a235027-ec05-468e-82e6-9bba9b44f8ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Daniel LaLiberte
dlaliberte@Google.com   5CC, Cambridge MA

--
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-visualization-api+unsubscribe@xxxxxxxxxxxxxxxx.
To post to this group, send email to google-visualization-api@xxxxxxxxxxxxxxxx.
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/CAOtcSJNwRoAbnpB4rJ3wiR58ZBqgP5hwt3TRWCJ2mvCc%2Bvr3hQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



Programming list archiving by: Enterprise Git Hosting