@@ -105,7 +105,8 @@ exports.plot = function(gd, data, layout, config) {
105
105
106
106
// hook class for plots main container (in case of plotly.js
107
107
// 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' ) ;
109
110
110
111
// off-screen getBoundingClientRect testing space,
111
112
// in #js-plotly-tester (and stored as Drawing.tester)
@@ -536,8 +537,7 @@ function plotLegacyPolar(gd, data, layout) {
536
537
var paperDiv = plotContainer . selectAll ( '.svg-container' )
537
538
. data ( [ 0 ] ) ;
538
539
paperDiv . enter ( ) . append ( 'div' )
539
- . classed ( 'svg-container' , true )
540
- . style ( 'position' , 'relative' ) ;
540
+ . classed ( 'svg-container' , true ) ;
541
541
542
542
// empty it everytime for now
543
543
paperDiv . html ( '' ) ;
@@ -3742,8 +3742,7 @@ function makePlotFramework(gd) {
3742
3742
// Make the svg container
3743
3743
fullLayout . _paperdiv = fullLayout . _container . selectAll ( '.svg-container' ) . data ( [ 0 ] ) ;
3744
3744
fullLayout . _paperdiv . enter ( ) . append ( 'div' )
3745
- . classed ( 'svg-container' , true )
3746
- . style ( 'position' , 'relative' ) ;
3745
+ . classed ( 'svg-container' , true ) ;
3747
3746
3748
3747
// Make the graph containers
3749
3748
// start fresh each time we get here, so we know the order comes out
0 commit comments