From bafbcad93ba27e0b63ea36b23c21f262249d193f Mon Sep 17 00:00:00 2001 From: Van Date: Tue, 23 Dec 2014 11:32:05 +0800 Subject: [PATCH] clear bug --- static/js/bottomGroup.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/static/js/bottomGroup.js b/static/js/bottomGroup.js index 679ae90..e428b50 100644 --- a/static/js/bottomGroup.js +++ b/static/js/bottomGroup.js @@ -35,24 +35,25 @@ var bottomGroup = { }); }, _initFrame: function () { - $(".bottom-window-group .output").mousedown(function (event) { + $(".bottom-window-group .output").parent().mousedown(function (event) { event.stopPropagation(); if (event.button === 0) { // 左键 $(".bottom-window-group .frame").hide(); - return false; + return; } // event.button === 2 右键 - var left = event.screenX; + var left = event.screenX, + $it = $(this); if ($(".side").css("left") === "auto" || $(".side").css("left") === "0px") { left = event.screenX - $(".side").width(); } $(".bottom-window-group .frame").show().css({ "left": left + "px", - "top": (event.offsetY + 20) + "px" + "top": (event.offsetY + event.target.offsetTop - $it.scrollTop() - 10) + "px" }); - return false; + return; }); }, clear: function (id) {