[rhmessaging-commits] rhmessaging commits: r4392 - mgmt/trunk/cumin/resources.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Mon Oct 18 11:14:11 EDT 2010


Author: eallen
Date: 2010-10-18 11:14:10 -0400 (Mon, 18 Oct 2010)
New Revision: 4392

Modified:
   mgmt/trunk/cumin/resources/slotvis.js
Log:
Fix for BZ 629929: The red box drawn when hovering of a png slot vis as too large.

Modified: mgmt/trunk/cumin/resources/slotvis.js
===================================================================
--- mgmt/trunk/cumin/resources/slotvis.js	2010-10-18 14:03:39 UTC (rev 4391)
+++ mgmt/trunk/cumin/resources/slotvis.js	2010-10-18 15:14:10 UTC (rev 4392)
@@ -527,15 +527,13 @@
             if (width == 0) return;
             var rx = col * width + slot_clip_left;
             var ry = row * width + slot_clip_top;
-            oHover.style.width = (width-1) + "px";
-            oHover.style.height = (width-1) + "px";
+            oHover.style.width = (width-2) + "px";
+            oHover.style.height = (width-2) + "px";
 
             switch (leg) {
             case 0:
                     oHover.style.left = rx + "px";
                     oHover.style.top = ry + "px";
-                    oHover.style.width = width + "px";
-                    oHover.style.height = width + "px";
                     oHover.style.borderColor = "red pink pink pink";
                     oHover.style.visibility = "visible";
                     if ((rx < 0) || (ry < 0) || (rx + width > slot_clip_size) || (ry + width > slot_clip_size)) {



More information about the rhmessaging-commits mailing list