dojox.charting.widget.Sparkline sizing is incorrect when in a templated widget
Hi,
when we have a widget that uses a template and we we create an instance of that widget, the sparkline contained in that widget defaults to a 400 (width) by 300 (height) dimension. It does so regardless of the size specified in the CSS for the div that will contain the sparkline.
Here's my setup:
I have a widgetA. that widget is a key performance indicator row. Among other things in that row I want to show a sparkline. Because I may have several KPIs to look at, there can be several instances of widgetA. So in widgetA I have a div that is going contain the sparkline. I want that div to be a certain width, controlled by CSS. Unfortunately regardless of the size i put in the CSS, the sparkline defaults to 400X300. This behavior happens when i use a template only. I have other divs that I put directly in the markup and whether I specify the CSS online or in a CSS construct, the sparkline sizes fine.
I attach a test file where you can see three sparklines: 1 with the inline CSS, one where the CSS is specified in the CSS section and another one in a templated widget (the third one).
As it stands, if we cannot control the size of a sparkline widget from CSS it's a significant inconvenience as that would mean we cannot dynamically create instances of several rows that can control sparklines.
Thanks for looking into it.
Ticket planning... move current 1.13 tickets out to 1.15 to make it easier to move tickets into the 1.13 milestone.