From 0c91cd2ea95081c898478c080825d0b65e7c3dea Mon Sep 17 00:00:00 2001 From: Gitea Date: Wed, 8 Sep 2021 15:13:41 +0800 Subject: [PATCH] fix annotation editor panel --- public/self/js/Director/detection.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/public/self/js/Director/detection.js b/public/self/js/Director/detection.js index b141a81ec..de14cc20d 100644 --- a/public/self/js/Director/detection.js +++ b/public/self/js/Director/detection.js @@ -276,11 +276,11 @@ function getShowShape(recttype){ function showPopup(topx,lefty,rectIndex,recttype) { - if (topx > canvas.height/2){ - topx = canvas.height/2; + if (topx > canvas.height){ + topx = canvas.height; } - if (lefty > canvas.width/2){ - lefty = canvas.width/2; + if (lefty > canvas.width){ + lefty = canvas.width; } _via_display_area_content_name = VIA_DISPLAY_AREA_CONTENT_NAME.IMAGE; @@ -2935,4 +2935,4 @@ function isJSON(str) { moveDownSinglePx(); break; }; - } \ No newline at end of file + }