File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -353,7 +353,6 @@ module.exports = function(Chart) {
353
353
me . paddingRight = me . labelRotation !== 0 ? ( sinRotation * ( tickFontSize / 2 ) ) + 3 : lastLabelWidth / 2 + 3 ; // when rotated
354
354
} else {
355
355
// A vertical axis is more constrained by the width. Labels are the dominant factor here, so get that length first
356
- var maxLabelWidth = me . maxWidth - minSize . width ;
357
356
358
357
// Account for padding
359
358
var mirror = tickOpts . mirror ;
@@ -364,14 +363,7 @@ module.exports = function(Chart) {
364
363
largestTextWidth = 0 ;
365
364
}
366
365
367
- if ( largestTextWidth < maxLabelWidth ) {
368
- // We don't need all the room
369
- minSize . width += largestTextWidth ;
370
- } else {
371
- // Expand to max size
372
- minSize . width = me . maxWidth ;
373
- }
374
-
366
+ minSize . width += largestTextWidth ;
375
367
me . paddingTop = tickFontSize / 2 ;
376
368
me . paddingBottom = tickFontSize / 2 ;
377
369
}
You can’t perform that action at this time.
0 commit comments