File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 21
21
menu : null , // selector or jQuery or a function returning such
22
22
taphold : 2000 , // open menu after 2000 ms long touch
23
23
// Events:
24
- beforeopen : $ . noop , // menu about to open; return `false` to prevent opening
24
+ beforeOpen : $ . noop , // menu about to open; return `false` to prevent opening
25
25
blur : $ . noop , // menu option lost focus
26
26
close : $ . noop , // menu was closed
27
27
create : $ . noop , // menu was initialized
85
85
// that refer to the contextmenu's context (which is the target *container*)
86
86
event . relatedTarget = openEvent . target ;
87
87
88
- if ( this . _trigger ( "beforeopen " , event ) === false ) {
88
+ if ( this . _trigger ( "beforeOpen " , event ) === false ) {
89
89
return false ;
90
90
}
91
91
// Create - but hide - context-menu
117
117
}
118
118
} ) ;
119
119
$menu
120
+ . show ( ) // required to fix positioning error (issue #)
120
121
. css ( {
121
122
position : "absolute" ,
122
123
left : 0 ,
126
127
at : "left bottom" ,
127
128
of : event ,
128
129
collision : "fit"
129
- } ) . slideDown ( "fast" , function ( ) {
130
+ } ) . hide ( )
131
+ . slideDown ( "fast" , function ( ) {
130
132
self . _trigger . call ( self , "open" , event ) ;
131
133
} ) ;
132
134
} ,
You can’t perform that action at this time.
0 commit comments