Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
970
Resize UltraChart
posted

I need to resize this UltraChart control when the window resizes.  The code gets executed, but the height does not change.  Debug IE shows me that this should be the object to change.  I also tried document.getElementById("UltraChart1_BaseImage").setAttribute("height", 1000);

example code

<body onresize="ResizeControl()">

...

<script>
function ResizeControl() {
try {

    var chart = document.getElementById("UltraChart1_BaseImage");

    chart.height = 1000;

  }

}

<script>

Parents
  • 970
    Offline posted

    Well, most of my issues are because it will only work if published.  This works

    var chart = document.getElementById("UltraChart1_BaseImage");
    chart.style.height = document.documentElement.clientHeight - 60;
    chart.style.width = document.documentElement.clientWidth - 20;

    But now a bigger problem...  This fails to work

    UltraChart1_ChartDataClicked

Reply Children