[pypy-svn] r71149 - pypy/build/bot2/jsplot/js
fijal at codespeak.net
fijal at codespeak.net
Sun Feb 7 20:30:50 CET 2010
Author: fijal
Date: Sun Feb 7 20:30:49 2010
New Revision: 71149
Modified:
pypy/build/bot2/jsplot/js/plot.js
Log:
Improve CSS
Modified: pypy/build/bot2/jsplot/js/plot.js
==============================================================================
--- pypy/build/bot2/jsplot/js/plot.js (original)
+++ pypy/build/bot2/jsplot/js/plot.js Sun Feb 7 20:30:49 2010
@@ -209,6 +209,12 @@
hoverable: true,
}
});
- $('.tickLabel[style*=center]').addClass('tickLabelY');
- $('.tickLabelY').css('text-align', 'left');
+ var canvas_bottom = $("canvas:last").position().top +
+ $("canvas:last").height();
+ $('.tickLabel[style*=center]').each(function() {
+ var width = $(this).width();
+ $(this).css("top", canvas_bottom + width - 50);
+ $(this).addClass('tickLabelY');
+ });
+ $('.tickLabelY').css('text-align', 'right');
}
More information about the Pypy-commit
mailing list