File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -1116,12 +1116,22 @@ var // currently active contextMenu trigger
1116
1116
layer : function ( opt , zIndex ) {
1117
1117
// add transparent layer for click area
1118
1118
// filter and background for Internet Explorer, Issue #23
1119
- return opt . $layer = $ ( '<div id="context-menu-layer" style="position:fixed; z-index:' + zIndex + '; top:0; left:0; opacity: 0; filter: alpha(opacity=0); background-color: #000;"></div>' )
1119
+ var $layer = opt . $layer = $ ( '<div id="context-menu-layer" style="position:fixed; z-index:' + zIndex + '; top:0; left:0; opacity: 0; filter: alpha(opacity=0); background-color: #000;"></div>' )
1120
1120
. css ( { height : $win . height ( ) , width : $win . width ( ) , display : 'block' } )
1121
1121
. data ( 'contextMenuRoot' , opt )
1122
1122
. insertBefore ( this )
1123
1123
. on ( 'contextmenu' , handle . abortevent )
1124
1124
. on ( 'mousedown' , handle . layerClick ) ;
1125
+
1126
+ // IE6 doesn't know position:fixed;
1127
+ if ( ! $ . support . fixedPosition ) {
1128
+ $layer . css ( {
1129
+ 'position' : 'absolute' ,
1130
+ 'height' : $ ( document ) . height ( )
1131
+ } ) ;
1132
+ }
1133
+
1134
+ return $layer ;
1125
1135
}
1126
1136
} ;
1127
1137
You can’t perform that action at this time.
0 commit comments