editor: fix context menu regression (position correction)
This commit is contained in:
parent
ec3113501e
commit
841ea9e19c
2 changed files with 16 additions and 3 deletions
|
|
@ -41,6 +41,8 @@ class ContextMenu {
|
|||
|
||||
}
|
||||
|
||||
menu.appendTo(parent || this.root)
|
||||
|
||||
if (!parent) {
|
||||
|
||||
menu.find('.item').hover(function(){
|
||||
|
|
@ -48,11 +50,15 @@ class ContextMenu {
|
|||
$(this).addClass('focus')
|
||||
})
|
||||
|
||||
this.correctPosition(menu)
|
||||
menu.find('.context-menu').each((i, m)=>{
|
||||
this.correctPosition($(m), $(m).parent())
|
||||
})
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
menu.appendTo(parent || this.root)
|
||||
|
||||
this.correctPosition(menu,parent)
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -87,5 +87,12 @@
|
|||
|
||||
.drag-knob {
|
||||
opacity: 0;
|
||||
|
||||
// safari fix
|
||||
position: absolute;
|
||||
top:0;
|
||||
bottom:0;
|
||||
left:0;
|
||||
right:0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue