#317 context menu

This commit is contained in:
cutls
2020-08-05 12:26:59 +09:00
parent 1710ab0035
commit 80ce93785a
2 changed files with 4 additions and 2 deletions

View File

@@ -680,7 +680,8 @@ function staEx(mode) {
})
return
}
function toggleAction(elem, height) {
function toggleAction(elem, ct) {
var height = ct * 39 + 6
var cont = elem.parents('.cvo').find('.contextMenu')
if (cont.hasClass('hide')) {
$('#contextWrap').removeClass('hide')
@@ -691,6 +692,7 @@ function toggleAction(elem, height) {
cont.removeClass('bottom')
cont.addClass('top')
} else {
top = elem.offset().top - 105
cont.removeClass('top')
cont.addClass('bottom')
}