[otrs-cvs] otrs/var/httpd/htdocs/js Core.Agent.Admin.ProcessManagement.Canvas.js, 1.48, 1.49

"CVS commits notifications of OTRS.org" <[email protected]>
Newsgroups gmane.comp.otrs.cvs
Message-ID <[email protected]>
Comments:
Update of /home/cvs/otrs/var/httpd/htdocs/js
In directory lancelot:/tmp/cvs-serv29657/var/httpd/htdocs/js

Modified Files:
	Core.Agent.Admin.ProcessManagement.Canvas.js 
Log Message:
ProcessManagement: Activity labels not aligned well.

Author: mn

Index: Core.Agent.Admin.ProcessManagement.Canvas.js
===================================================================
RCS file: /home/cvs/otrs/var/httpd/htdocs/js/Core.Agent.Admin.ProcessManagement.Canvas.js,v
retrieving revision 1.48
retrieving revision 1.49
diff -2 -u -d -r1.48 -r1.49
--- Core.Agent.Admin.ProcessManagement.Canvas.js	5 Feb 2013 13:09:24 -0000	1.48
+++ Core.Agent.Admin.ProcessManagement.Canvas.js	14 Feb 2013 09:33:04 -0000	1.49
@@ -30,5 +30,8 @@
 Core.Agent.Admin.ProcessManagement.Canvas = (function (TargetNS) {
 
-    var Elements = {};
+    var Elements = {},
+        ActivityBoxHeight = 80;
+
+
 
     function EscapeHTML(Content) {
@@ -65,5 +68,5 @@
             }
             if (Top > MaxHeight) {
-                MaxHeight = Top + 80;
+                MaxHeight = Top + ActivityBoxHeight;
             }
         });
@@ -137,5 +140,7 @@
 
         var Config = Core.Agent.Admin.ProcessManagement.ProcessData,
-            ProcessEntityID = $('#ProcessEntityID').val();
+            ProcessEntityID = $('#ProcessEntityID').val(),
+            EntityNameHeight,
+            $EntityBox;
 
         $('#Canvas')
@@ -163,4 +168,9 @@
             });
 
+        // Correct placing of activity name within box
+        $EntityBox = $('#' + EntityID);
+        EntityNameHeight = $EntityBox.find('span').height();
+        $EntityBox.find('span').css('margin-top', parseInt((ActivityBoxHeight - EntityNameHeight) / 2), 10);
+
         // make the activity able to accept transitions
         jsPlumb.makeTarget(EntityID, {
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.