Dear Rahul,
Thanks for your quick reply.
indeed we are using % width in the code generating the Gantt chart. the hight is an integer passed to the function.
if is is the problem, then please advise on a method to change it in order to prevent it from happening.
following is the C# code that creates the Gantt chart:
private
void createGanttFromXMLSourse(int hight){
tdGantt.Controls.Clear();
StringBuilder sb = new StringBuilder();
if (!chkFitToPage.Checked){
float widthParam = Convert.ToSingle(ddlGanttZoom.Text) / 7;
if(widthParam < 1)widthParam = 1;
sb.Append(
"var myChart = new FusionCharts('../FusionGadgets_Developer/Charts/Gantt.swf', 'chartId', '" + (1000 * widthParam) + "', '" + hight + "', '0', '1');");}
else{
sb.Append(
"var myChart = new FusionCharts('../FusionGadgets_Developer/Charts/Gantt.swf', 'chartId', '100%', '" + hight + "', '0', '1');");}
sb.Append(
"myChart.setDataURL('Data/OperatorsGanttZoomOut.xml');");sb.Append(
"myChart.render('chartdiv');");
//sb.Append("</script>");
HtmlGenericControl divControl = new HtmlGenericControl("div");divControl.Attributes.Add(
"id", "chartdiv");
HtmlGenericControl control = new HtmlGenericControl("script");control.Attributes.Add(
"type", "text/javascript");control.InnerText = sb.ToString();
tdGantt.Controls.Add(divControl);
tdGantt.Controls.Add(control);
}