PDA

View Full Version : Linechart is not loading correctly if it is hidden



LizMyself
10 Mar 2015, 6:02 AM
Hey together,

i have a linechart whitch is loading in an inactive Tab.
This chart is not loading correctly. Its not using the full space and so only the first entry in the bottom Axis is shown.

If i load the linechart in the active Tab (so i can see it) it works all fine.

I tried to refresh or doComponentLayout after it is shown again but nothing works.

Has somebody an idea what i can do?

Kind regards,
Liz

joel.watson
12 Mar 2015, 8:08 PM
Hi Liz--

Can you create a runnable test case that demonstrates this issue (https://fiddle.sencha.com)?

Thanks
Joel

LizMyself
1 Apr 2015, 1:12 AM
Hey I am Sorry, my code is to complex, but I found a solution:

If the chart is shown (the tab is activated) and there is still a loadMask, I remove it and call the function restoreZoom();

This works fine!

Thank you for your help!