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/08/31 10:51:15 UTC
svn commit: r991122 - in /myfaces/tobago/branches/tobago-1.0.x:
core/src/main/java/org/apache/myfaces/tobago/context/
theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/mozilla_5_0_ff_2/
theme/scarborough/src/main...
Author: lofwyr
Date: Tue Aug 31 08:51:15 2010
New Revision: 991122
URL: http://svn.apache.org/viewvc?rev=991122&view=rev
Log:
Table Header is not displayed correctly when using Firefox 2.x
Added:
myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/mozilla_5_0_ff_2/
myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/mozilla_5_0_ff_2/style/
myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/mozilla_5_0_ff_2/style/tobago-sheet.css
Modified:
myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/context/UserAgent.java
Modified: myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/context/UserAgent.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/context/UserAgent.java?rev=991122&r1=991121&r2=991122&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/context/UserAgent.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/context/UserAgent.java Tue Aug 31 08:51:15 2010
@@ -64,6 +64,8 @@ public class UserAgent implements Serial
public static final UserAgent MOZILLA_5_0_R1_6 = new UserAgent("mozilla", "5_0_r1_6");
+ /** Firefox 2 */
+ public static final UserAgent MOZILLA_5_0_FF_2 = new UserAgent("mozilla", "5_0_ff_2");
private String name;
@@ -148,6 +150,8 @@ public class UserAgent implements Serial
} else if (header.indexOf("mozilla 5.0") > -1) {
if (header.indexOf("rv:1.6") > -1) {
return MOZILLA_5_0_R1_6;
+ } else if (header.indexOf("firefox 2") > -1) {
+ return MOZILLA_5_0_FF_2;
} else {
return MOZILLA_5_0;
}
@@ -197,6 +201,8 @@ public class UserAgent implements Serial
return MOZILLA_5_0;
} else if (id.equals("mozilla_5_0_r1_6")) {
return MOZILLA_5_0_R1_6;
+ } else if (id.equals("mozilla_5_0_ff_2")) {
+ return MOZILLA_5_0_FF_2;
} else {
return MOZILLA;
}
Added: myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/mozilla_5_0_ff_2/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_5_0_ff_2/style/tobago-sheet.css?rev=991122&view=auto
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/mozilla_5_0_ff_2/style/tobago-sheet.css (added)
+++ myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/mozilla_5_0_ff_2/style/tobago-sheet.css Tue Aug 31 08:51:15 2010
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+.tobago-sheet-header-box {
+ display: -moz-inline-box;
+ -moz-box-sizing: border-box;
+}
+
+.tobago-sheet-header-resize {
+ margin-left: -5px;
+ position: relative;
+}