File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ module.exports = function draw(gd, id) {
254
254
255
255
cbAxisOut . _axislayer = container . select ( '.cbaxis' ) ;
256
256
var titleHeight = 0 ;
257
- if ( [ 'top' , 'bottom' ] . indexOf ( opts . titleside ) !== - 1 ) {
257
+ if ( [ 'top' , 'bottom' ] . indexOf ( opts . titleside ) !== - 1 ) {
258
258
// draw the title so we know how much room it needs
259
259
// when we squish the axis
260
260
Titles . draw ( gd , cbAxisOut . _id + 'title' ) ;
Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ Titles.draw = function(gd, title) {
244
244
avoid . selection . each ( function ( ) {
245
245
var avoidbb = Drawing . bBox ( this ) ;
246
246
247
- if ( Lib . bBoxIntersect ( titlebb , avoidbb , pad ) ) {
247
+ if ( Lib . bBoxIntersect ( titlebb , avoidbb , pad ) ) {
248
248
shift = Math . max ( shift , shiftSign * (
249
249
avoidbb [ avoid . side ] - titlebb [ backside ] ) + pad ) ;
250
250
}
You can’t perform that action at this time.
0 commit comments