File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ var rules = {
31
31
"X .cursor-n-resize" : "cursor:n-resize;" ,
32
32
"X .cursor-ne-resize" : "cursor:ne-resize;" ,
33
33
"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;" ,
35
35
"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;" ,
36
36
"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;" ,
37
37
"X:hover .modebar--hover .modebar-group" : "opacity:1;" ,
Original file line number Diff line number Diff line change 2
2
position : absolute ;
3
3
top : 2px ;
4
4
right : 2px ;
5
- z-index : 1001 ;
6
5
}
7
6
8
7
.ease-bg {
Original file line number Diff line number Diff line change @@ -3805,6 +3805,11 @@ function makePlotFramework(gd) {
3805
3805
fullLayout . _toppaper = fullLayout . _paperdiv . append ( 'svg' )
3806
3806
. classed ( 'main-svg' , true ) ;
3807
3807
3808
+ fullLayout . _modebardiv = fullLayout . _paperdiv . append ( 'div' ) ;
3809
+
3810
+ fullLayout . _hoverpaper = fullLayout . _paperdiv . append ( 'svg' )
3811
+ . classed ( 'main-svg' , true ) ;
3812
+
3808
3813
if ( ! fullLayout . _uid ) {
3809
3814
var otherUids = { } ;
3810
3815
d3 . selectAll ( 'defs' ) . each ( function ( ) {
@@ -3881,11 +3886,10 @@ function makePlotFramework(gd) {
3881
3886
fullLayout . _infolayer = fullLayout . _toppaper . append ( 'g' ) . classed ( 'infolayer' , true ) ;
3882
3887
fullLayout . _menulayer = fullLayout . _toppaper . append ( 'g' ) . classed ( 'menulayer' , true ) ;
3883
3888
fullLayout . _zoomlayer = fullLayout . _toppaper . append ( 'g' ) . classed ( 'zoomlayer' , true ) ;
3884
- fullLayout . _hoverlayer = fullLayout . _toppaper . append ( 'g' ) . classed ( 'hoverlayer' , true ) ;
3889
+ fullLayout . _hoverlayer = fullLayout . _hoverpaper . append ( 'g' ) . classed ( 'hoverlayer' , true ) ;
3885
3890
3886
3891
// Make the modebar container
3887
- fullLayout . _modebardiv = fullLayout . _paperdiv . selectAll ( '.modebar-container' ) . data ( [ 0 ] ) ;
3888
- fullLayout . _modebardiv . enter ( ) . append ( 'div' )
3892
+ fullLayout . _modebardiv
3889
3893
. classed ( 'modebar-container' , true )
3890
3894
. style ( 'position' , 'absolute' )
3891
3895
. style ( 'top' , '0px' )
You can’t perform that action at this time.
0 commit comments