From 6f7eb67ace604df05fdf4de03c0292a1e08f72c0 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Wed, 8 Sep 2021 14:49:20 +0800 Subject: [PATCH] fix show annoattion --- public/self/js/Director/detection.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/self/js/Director/detection.js b/public/self/js/Director/detection.js index cf381f284..b141a81ec 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){ - topx = canvas.height; + if (topx > canvas.height/2){ + topx = canvas.height/2; } - if (lefty > canvas.width){ - lefty = canvas.width; + if (lefty > canvas.width/2){ + lefty = canvas.width/2; } _via_display_area_content_name = VIA_DISPLAY_AREA_CONTENT_NAME.IMAGE;