It appears that setting a breakpoint before redrawing appears to mediate
this issue. This implies to me that this is a timing issue. I would guess
that it's because jQuery doesn't do the CSS update immediately. I'd be
willing to bet that doing setTimeout(redraw) would fix your issues most of
the time. You could also use the .after() function on jQuery, which will
hopefully make a difference. Something like: $('#container').css('display',
'block').after(redraw);


On Tue, Apr 7, 2015 at 1:54 PM Alan Sparkes <[email protected]> wrote:

> Hi
> So the problem defined is this:
> 1. View the table tab
>
> https://www.dropbox.com/s/qhlcpmoh5foicht/Screenshot%202015-04-07%2018.44.27.png?dl=0
>
> 2. reload the page and click chart tab
>
> https://www.dropbox.com/s/fsmdt9smob67sei/Screenshot%202015-04-07%2018.47.59.png?dl=0
>
> 3. General solution is to redraw chart when chart tab is clicked
> So we listen for this and when clicked redraw the chart
>
> https://www.dropbox.com/s/7emrrmund3p1o1t/Screenshot%202015-04-07%2018.44.39.png?dl=0
>
> This works but the legend appears to be redrawn incorrectly - or its width
> is narrower than its content so it appears squished.
>
> A test example can be seen here: http://bit.ly/1CuMOme
>
> --
> 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 [email protected].
> To post to this group, send email to
> [email protected].
> Visit this group at
> http://groups.google.com/group/google-visualization-api.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to