Fixes incorrect chartController height and width functions

scrollWidth and scrollHeight will change if the contents overflow,
offsetWidth and offsetHeight should be the actually height and width of
the chart element.