@@ -308,7 +308,7 @@ function _draw(gd, legendObj) {
308308 }
309309
310310 if ( gd . _context . edits . legendPosition ) {
311- var xf , yf , x0 , y0 , legend_width , legend_height ;
311+ var xf , yf , x0 , y0 , legendWidth , legendHeight ;
312312
313313 legend . classed ( 'cursor-move' , true ) ;
314314
@@ -320,16 +320,16 @@ function _draw(gd, legendObj) {
320320 x0 = transform . x ;
321321 y0 = transform . y ;
322322 var bbox = legend . node ( ) . getBBox ( ) ;
323- legend_width = bbox . width ;
324- legend_height = bbox . height ;
323+ legendWidth = bbox . width ;
324+ legendHeight = bbox . height ;
325325 } ,
326326 moveFn : function ( dx , dy ) {
327327 var newX = x0 + dx ;
328328 var newY = y0 + dy ;
329329
330330 Drawing . setTranslate ( legend , newX , newY ) ;
331- xf = dragElement . align ( newX , legend_width , gs . l , gs . l + gs . w , legendObj . xanchor ) ;
332- yf = dragElement . align ( newY + legend_height , - legend_height , gs . t + gs . h , gs . t , legendObj . yanchor ) ;
331+ xf = dragElement . align ( newX , legendWidth , gs . l , gs . l + gs . w , legendObj . xanchor ) ;
332+ yf = dragElement . align ( newY + legendHeight , - legendHeight , gs . t + gs . h , gs . t , legendObj . yanchor ) ;
333333 } ,
334334 doneFn : function ( ) {
335335 if ( xf !== undefined && yf !== undefined ) {
0 commit comments