rnd = i > 0 ? i : 0;
dx = length / steps;
+
// left or right
if (+orientation == 1 || +orientation == 3) {
var Y = y,
dx = (length - (opts.loffset + opts.roffset)) / steps,
txt = 0,
prev = 0;
-
- while (X < x + length) {
+
+ if(dx < 1){
+ dx = 1;
+ }
+
+ while (X <= x + length) {
Roo.log('label ' + j + ":" + labels[j]);
if (typeof(labels[j]) == 'undefined') {