:::java
public T setSize(int width, int height, boolean animated)
Whether you set the animated flag to true or false, the resizing gets animated.
So to whomever still roams these forums, here's a fix :
In the BaseChart class, just change this function :
~~~~~~~~~~~~~~~~
:::java
public T setSize(int width, int height, Animation animation) {
// Avoid monkeying with anything if we got bad valuesif(width<=0||height<=0){returnreturnThis();}if(isRendered()){// If we re already on the screen, then do the resize nativelyif(animation==null){nativeSetSize(chart,width,height,false);}elseif(animation.getOptions()==null){nativeSetSize(chart,width,height,true);}else{nativeSetSize(chart,width,height,animation.getOptions().getJavaScriptObject());}}else{// In we're invoked before the chart is rendered, keep the width and height around in our configurationsetOption("/chart/width",width);setOption("/chart/height",height);}returnreturnThis();
}
~~~~~~~~~~~~~~~~~
kthxbai
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
There's a bug with the function :
Whether you set the animated flag to true or false, the resizing gets animated.
So to whomever still roams these forums, here's a fix :
In the BaseChart class, just change this function :
~~~~~~~~~~~~~~~~
:::java
public T setSize(int width, int height, Animation animation) {
}
~~~~~~~~~~~~~~~~~
kthxbai