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

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Fri Apr 24 10:57:00 EDT 2009


Author: eallen
Date: 2009-04-24 10:57:00 -0400 (Fri, 24 Apr 2009)
New Revision: 3330

Modified:
   mgmt/trunk/cumin/resources/app.css
   mgmt/trunk/cumin/resources/app.js
Log:
Better way of handling double-click on fullpage title bar.

Modified: mgmt/trunk/cumin/resources/app.css
===================================================================
--- mgmt/trunk/cumin/resources/app.css	2009-04-23 21:21:50 UTC (rev 3329)
+++ mgmt/trunk/cumin/resources/app.css	2009-04-24 14:57:00 UTC (rev 3330)
@@ -502,6 +502,15 @@
     z-index: 0;
 }
 
+div.fullpageTitleBar {
+    position: absolute;
+    height: 22px;
+    top: -2px;
+    left: -4px;
+    width: 100%;
+    z-index: 3;
+}
+
 p.fullpageIcon {
     background-color: white;
     border-top: 2px solid #685B8A;

Modified: mgmt/trunk/cumin/resources/app.js
===================================================================
--- mgmt/trunk/cumin/resources/app.js	2009-04-23 21:21:50 UTC (rev 3329)
+++ mgmt/trunk/cumin/resources/app.js	2009-04-24 14:57:00 UTC (rev 3330)
@@ -106,15 +106,17 @@
         var element = elements[i];
 
         element.removeClass('fullpageable');
-        var outer = new Element('div', {'class': 'fullpageable',
+        var outer = new Element('div', {'class': 'fullpageable'});
+        var titleBack = new Element('div', {'class': 'fullpageTitle'});
+        var titleBar = new Element('div', {'class': 'fullpageTitleBar',
             'events': {'dblclick': function () {fullpage(this);}}});
-        var title = new Element('div', {'class': 'fullpageTitle'});
         var icon = new Element('p', {'class': 'fullpageIcon', 
              'title': 'Full Page', 
              'events': {'click': function () {fullpage(this);}}});
         var container = new Element('div', {'class': 'widgetContainer'});
 
-        outer.appendChild(title);
+        outer.appendChild(titleBack);
+        outer.appendChild(titleBar);
         outer.appendChild(icon);
         outer.appendChild(container);
         




More information about the rhmessaging-commits mailing list