File tree Expand file tree Collapse file tree 4 files changed +11
-8
lines changed Expand file tree Collapse file tree 4 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ var rules = {
3131 "X .cursor-n-resize" : "cursor:n-resize;" ,
3232 "X .cursor-ne-resize" : "cursor:ne-resize;" ,
3333 "X .cursor-grab" : "cursor:-webkit-grab;cursor:grab;" ,
34- "X .modebar" : "position:absolute;top:2px;right:2px;z-index:1001; " ,
34+ "X .modebar" : "position:absolute;top:2px;right:2px;" ,
3535 "X .ease-bg" : "-webkit-transition:background-color 0.3s ease 0s;-moz-transition:background-color 0.3s ease 0s;-ms-transition:background-color 0.3s ease 0s;-o-transition:background-color 0.3s ease 0s;transition:background-color 0.3s ease 0s;" ,
3636 "X .modebar--hover>:not(.watermark)" : "opacity:0;-webkit-transition:opacity 0.3s ease 0s;-moz-transition:opacity 0.3s ease 0s;-ms-transition:opacity 0.3s ease 0s;-o-transition:opacity 0.3s ease 0s;transition:opacity 0.3s ease 0s;" ,
3737 "X:hover .modebar--hover .modebar-group" : "opacity:1;" ,
Original file line number Diff line number Diff line change 22 position : absolute ;
33 top : 2px ;
44 right : 2px ;
5- z-index : 1001 ;
65}
76
87.ease-bg {
Original file line number Diff line number Diff line change @@ -3808,6 +3808,11 @@ function makePlotFramework(gd) {
38083808 fullLayout . _toppaper = fullLayout . _paperdiv . append ( 'svg' )
38093809 . classed ( 'main-svg' , true ) ;
38103810
3811+ fullLayout . _modebardiv = fullLayout . _paperdiv . append ( 'div' ) ;
3812+
3813+ fullLayout . _hoverpaper = fullLayout . _paperdiv . append ( 'svg' )
3814+ . classed ( 'main-svg' , true ) ;
3815+
38113816 if ( ! fullLayout . _uid ) {
38123817 var otherUids = { } ;
38133818 d3 . selectAll ( 'defs' ) . each ( function ( ) {
@@ -3884,11 +3889,10 @@ function makePlotFramework(gd) {
38843889 fullLayout . _infolayer = fullLayout . _toppaper . append ( 'g' ) . classed ( 'infolayer' , true ) ;
38853890 fullLayout . _menulayer = fullLayout . _toppaper . append ( 'g' ) . classed ( 'menulayer' , true ) ;
38863891 fullLayout . _zoomlayer = fullLayout . _toppaper . append ( 'g' ) . classed ( 'zoomlayer' , true ) ;
3887- fullLayout . _hoverlayer = fullLayout . _toppaper . append ( 'g' ) . classed ( 'hoverlayer' , true ) ;
3892+ fullLayout . _hoverlayer = fullLayout . _hoverpaper . append ( 'g' ) . classed ( 'hoverlayer' , true ) ;
38883893
38893894 // Make the modebar container
3890- fullLayout . _modebardiv = fullLayout . _paperdiv . selectAll ( '.modebar-container' ) . data ( [ 0 ] ) ;
3891- fullLayout . _modebardiv . enter ( ) . append ( 'div' )
3895+ fullLayout . _modebardiv
38923896 . classed ( 'modebar-container' , true )
38933897 . style ( 'position' , 'absolute' )
38943898 . style ( 'top' , '0px' )
Original file line number Diff line number Diff line change @@ -329,7 +329,7 @@ describe('Test Plots', function() {
329329
330330 it ( 'should resize the main svgs' , function ( ) {
331331 var mainSvgs = document . getElementsByClassName ( 'main-svg' ) ;
332- expect ( mainSvgs . length ) . toBe ( 2 ) ;
332+ expect ( mainSvgs . length ) . toBe ( 3 ) ;
333333
334334 for ( var i = 0 ; i < mainSvgs . length ; i ++ ) {
335335 var svg = mainSvgs [ i ] ;
@@ -343,7 +343,7 @@ describe('Test Plots', function() {
343343
344344 it ( 'should update the axis scales' , function ( ) {
345345 var mainSvgs = document . getElementsByClassName ( 'main-svg' ) ;
346- expect ( mainSvgs . length ) . toBe ( 2 ) ;
346+ expect ( mainSvgs . length ) . toBe ( 3 ) ;
347347
348348 var fullLayout = gd . _fullLayout ;
349349 var plotinfo = fullLayout . _plots . xy ;
@@ -357,7 +357,7 @@ describe('Test Plots', function() {
357357
358358 it ( 'should allow resizing by plot ID' , function ( done ) {
359359 var mainSvgs = document . getElementsByClassName ( 'main-svg' ) ;
360- expect ( mainSvgs . length ) . toBe ( 2 ) ;
360+ expect ( mainSvgs . length ) . toBe ( 3 ) ;
361361
362362 expect ( typeof gd . id ) . toBe ( 'string' ) ;
363363 expect ( gd . id ) . toBeTruthy ( ) ;
You can’t perform that action at this time.
0 commit comments