I am trying to center components on my form.
I have a jqxChart on my form. I am using the following to center the chart
var posX2 = (winWidth/2) - ($("#Chart1").width()/2) + $(window).scrollLeft()
I have found the value of $("#Chart1).width is changing when I move to different forms and come back.
So I tried using Chart1.Width and that did even less for me.
Can someone explain why my chart width is changing without any explicit changes to the chart's width and what are the rules in referencing components.