From 80ce93785ad74054b4d1e26535c15d13231301a6 Mon Sep 17 00:00:00 2001 From: cutls Date: Wed, 5 Aug 2020 12:26:59 +0900 Subject: [PATCH] #317 context menu --- app/js/post/status.js | 4 +++- app/js/tl/parse.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/js/post/status.js b/app/js/post/status.js index c4a37ae1..49e651f5 100644 --- a/app/js/post/status.js +++ b/app/js/post/status.js @@ -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') } diff --git a/app/js/tl/parse.js b/app/js/tl/parse.js index d4d97783..53fd60c1 100644 --- a/app/js/tl/parse.js +++ b/app/js/tl/parse.js @@ -1132,7 +1132,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {