You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2010/05/19 22:17:37 UTC

svn commit: r946369 - in /myfaces/tobago/branches/tobago-1.0.x/theme: scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/mozilla/style/ standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/stand...

Author: lofwyr
Date: Wed May 19 20:17:37 2010
New Revision: 946369

URL: http://svn.apache.org/viewvc?rev=946369&view=rev
Log:
TOBAGO-883: Resizing of columns doesn't work in Firefox

Modified:
    myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/mozilla/style/tobago-sheet.css
    myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.js

Modified: myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/mozilla/style/tobago-sheet.css
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/mozilla/style/tobago-sheet.css?rev=946369&r1=946368&r2=946369&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/mozilla/style/tobago-sheet.css (original)
+++ myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/mozilla/style/tobago-sheet.css Wed May 19 20:17:37 2010
@@ -22,32 +22,36 @@
 }
 
 .tobago-sheet-header-box {
-	display: -moz-inline-box;
-	-moz-box-sizing: border-box;
+	display: inline-block;
 	height: 20px;
 }
 
-
 .tobago-sheet-header {
 	-moz-box-sizing: border-box;
 	-moz-box-flex: 1;
 }
 
 .tobago-sheet-header-resize {
-	line-height: 12px;
-	margin-left: -5px;
-	margin-right: -5px;
-	position: relative;
-	/*-moz-box-sizing: border-box;*/
-
+  height: 100%;
+  overflow: hidden;
+  position: absolute;
+  right: 0px;
+  top: 0px;
+  width: 5px;
+  line-height: 12px;
+  -moz-box-sizing: border-box;
+  margin-left: 0px;
+  margin-right: 0px;
 }
 
-
 .tobago-sheet-header-sort-div {
-	position: relative;
+	position: absolute;
   margin-top: 6px;
-  margin-left: -13px;
-  margin-right: 5px;
+  margin-left: 0px;
+  margin-right: 0px;
+  right: 5px;
+  top: 0px;
+  width: 8px;
 }
 
 .tobago-sheet-body-div {

Modified: myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.js?rev=946369&r1=946368&r2=946369&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.js (original)
+++ myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.js Wed May 19 20:17:37 2010
@@ -761,6 +761,18 @@ Tobago.Sheet.prototype.adjustHeaderDiv =
     //  LOG.debug("filler      :" + fillBox.clientWidth);
     //  LOG.debug("fillerstyle :" + fillBox.style.width);
     //  LOG.debug("##########################################");
+
+  // XXX fix for Firefox 3.0
+  if (navigator.userAgent.indexOf("Firefox/3.0") > -1) {
+    var length = headerDiv.childNodes.length;
+    for (var i = 0; i < length; i++) {
+      var box2 = Tobago.element(this.id + "_header_box_" + i);
+      var outer = Tobago.element(this.id + "_header_outer_" + i);
+      if (box2 && outer) {
+        outer.style.width = box2.style.width;
+      }
+    }
+  }
   };
 
 Tobago.Sheet.prototype.beginResize = function(event) {