Chris Leonello avatar Chris Leonello committed 1d097ad

Modified css and style sheet to account for IE6 non-conformance to CSS2 selectors.

Comments (0)

Files changed (3)

src/jqplot.axisTickRenderer.js

         if (Number(this.label)) {
             style='style="white-space:nowrap;" ';
         }
-        this._elem = $('<div '+style+'class="jqplot-axis-tick">'+this.label+'</div>');
+        this._elem = $('<div '+style+'class="jqplot-'+this.axis+'-tick">'+this.label+'</div>');
         for (var s in this._styles) {
             this._elem.css(s, this._styles[s]);
         }

src/jquery.jqplot.css

 
 /*rules applied to all axis tick divs*/
 .jqplot-axis-tick {
+    position: absolute;
 }
 
+/*
 .jqplot-xaxis > .jqplot-axis-tick {
     position: absolute;
     top: 0px;
+    left: 15px;
+    padding-top: 10px;
+    vertical-align: top;
+}
+
+.jqplot-x2axis > .jqplot-axis-tick {
+    position: absolute;
+    bottom: 0px;
+    left: 15px;
+    padding-bottom: 10px;
+    vertical-align: bottom;
+}
+
+.jqplot-yaxis > .jqplot-axis-tick {
+    position: absolute;
+    right: 0px;
+    top: 15px;
+    padding-right: 10px;
+    text-align: right;
+}
+
+.jqplot-y2axis-tick {
+    position: absolute;
+    left: 0px;
+    top: 15px;
+    padding-left: 10px;
+    text-align: left;
+}
+*/
+
+.jqplot-xaxis-tick {
+    position: absolute;
+    top: 0px;
     /* initial position untill tick is drawn in proper place */
     left: 15px;
     padding-top: 10px;
     vertical-align: top;
 }
 
-.jqplot-x2axis > .jqplot-axis-tick {
+.jqplot-x2axis-tick {
     position: absolute;
     bottom: 0px;
     /* initial position untill tick is drawn in proper place */
     vertical-align: bottom;
 }
 
-.jqplot-yaxis > .jqplot-axis-tick {
+.jqplot-yaxis-tick {
     position: absolute;
     right: 0px;
     /* initial position untill tick is drawn in proper place */
     text-align: right;
 }
 
-.jqplot-y2axis > .jqplot-axis-tick {
+.jqplot-y2axis-tick {
     position: absolute;
     left: 0px;
     /* initial position untill tick is drawn in proper place */

src/plugins/jqplot.canvasAxisTickRenderer.js

 		this._domelem = domelem;
         this._elem = $(domelem);
         this._elem.css(this._styles);
-        this._elem.addClass('jqplot-axis-tick');
+        this._elem.addClass('jqplot-'+this.axis+'-tick');
         //this._ctx = ctx;
         // this._elem.css('width', w);
         // this._elem.css('height', h);
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.