@@ -105,7 +105,8 @@ exports.plot = function(gd, data, layout, config) {
105105
106106 // hook class for plots main container (in case of plotly.js
107107 // this won't be #embedded-graph or .js-tab-contents)
108- d3 . select ( gd ) . classed ( 'js-plotly-plot' , true ) ;
108+ d3 . select ( gd ) . classed ( 'js-plotly-plot' , true )
109+ . style ( 'position' , 'relative' ) ;
109110
110111 // off-screen getBoundingClientRect testing space,
111112 // in #js-plotly-tester (and stored as Drawing.tester)
@@ -536,8 +537,7 @@ function plotLegacyPolar(gd, data, layout) {
536537 var paperDiv = plotContainer . selectAll ( '.svg-container' )
537538 . data ( [ 0 ] ) ;
538539 paperDiv . enter ( ) . append ( 'div' )
539- . classed ( 'svg-container' , true )
540- . style ( 'position' , 'relative' ) ;
540+ . classed ( 'svg-container' , true ) ;
541541
542542 // empty it everytime for now
543543 paperDiv . html ( '' ) ;
@@ -3742,8 +3742,7 @@ function makePlotFramework(gd) {
37423742 // Make the svg container
37433743 fullLayout . _paperdiv = fullLayout . _container . selectAll ( '.svg-container' ) . data ( [ 0 ] ) ;
37443744 fullLayout . _paperdiv . enter ( ) . append ( 'div' )
3745- . classed ( 'svg-container' , true )
3746- . style ( 'position' , 'relative' ) ;
3745+ . classed ( 'svg-container' , true ) ;
37473746
37483747 // Make the graph containers
37493748 // start fresh each time we get here, so we know the order comes out
0 commit comments