PDA

View Full Version : Bar chart highlight problem



ehaas
24 Feb 2012, 10:30 AM
I have created a bar chart using ExtJs 4.0.7 and added a highlight. The chart can sometimes have a few hundred rows so you have to scroll the screen to see them all.

In Chrome, this works fine, but in FireFox and IE if you scroll down the page to see more of the chart, the element that is highlighted is the element that would occupy that place on the first screen.

In Ext.chart.Chart in the getEventXY() function gets the X and Y coordinates for the mouse cursor and then applies those as absolute coordinates in the box defined by the chart.
In chrome, these X and Y coordinates take into account the scroll of the page, but in FireFox and IE, they do not.

Has anyone else run into this?

mitchellsimoens
24 Feb 2012, 12:34 PM
I have not but then again I haven't had the need to.