-
17 Apr 2012 11:19 AM #1
GXT RC2 Axis Labels display wrong in Firefox/Chrome
GXT RC2 Axis Labels display wrong in Firefox/Chrome
Required Information
Version(s) of Ext GWT
Ext GWT 3.0 Release Candidate 2
Browser versions and OS(and desktop environment, if applicable)- Firefox
- Chrome
No
Description
In firefox and chrome the bottom category axis labels display on top of the chart but it works in IE
Run mode
Dev
Screenshot or video
FireFox:
firefox.png
IE:
ie.png
-
17 Apr 2012 12:32 PM #2
Thanks for the report. In order to ensure that we're able to reproduce your exact issue, please include a small test case that implements EntryPoint.
Also, are you noticing this issue with any of the examples in the Explorer demo?
-
18 Apr 2012 11:08 AM #3
If you use the Area Chart example in the example explorer and change the line where it gets data to:
And then the getData function needs to be adjusted so you don't get an index out of bounds error:Code:store.addAll(TestData.getData(40, 20, 100));
It appears that this bug only happens when there are more x axis data points than axis labels it can fit into the space.Code:public static List<Data> getData(int size, double min, double scale) { List<Data> data = new ArrayList<Data>(); for (int i = 0; i < size; i++) { data.add(new Data(monthsFull[i % monthsFull.length], Math.floor(Math.max(Math.random() * scale, min)), Math.floor(Math.max(Math.random() * scale, min)), Math.floor(Math.max(Math.random() * scale, min)), Math.floor(Math.max(Math.random() * scale, min)), Math.floor(Math.max(Math.random() * scale, min)), Math.floor(Math.max(Math.random() * scale, min)), Math.floor(Math.max(Math.random() * scale, min)), Math.floor(Math.max(Math.random() * scale, min)), Math.floor(Math.max(Math.random() * scale, min)))); } return data; }
-
23 May 2012 2:37 PM #4
This is now fixed in SVN and will be in the next release.
-
15 Aug 2012 1:32 PM #5
GXT 3.0.1 has been released and contains this fix.
Success! Looks like we've fixed this one. According to our records the fix was applied for
a bug in our system
in
a recent build.


Reply With Quote