Index: main/kernel/resources/css/STools/stab.css
===================================================================
--- main/kernel/resources/css/STools/stab.css (revision 0)
+++ main/kernel/resources/css/STools/stab.css (revision 0)
@@ -0,0 +1,14 @@
+/*
+ * Copyright (c) 2007 Anyware Technologies and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.opensource.org/licenses/eclipse-1.0.php
+ *
+ * Contributors:
+ * Anyware Technologies - initial API and implementation
+ */
+.stab_tabs
+{
+ float : left;
+}
Index: main/kernel/resources/js/STools/STab.js
===================================================================
--- main/kernel/resources/js/STools/STab.js (revision 322)
+++ main/kernel/resources/js/STools/STab.js (working copy)
@@ -8,10 +8,13 @@
* Contributors:
* Anyware Technologies - initial API and implementation
*/
-
+STab.css = "resources/css/";
+STab.img = "resources/img/";
function STab(id, config, _document, listener) {
if (_document == null) _document = document;
+
+ STools.loadStyle (_document, STree.css + "stab.css")
this.listener = listener;
this.document = _document;
@@ -85,7 +88,7 @@
head.rows[2].cells[2].appendChild(img)
}
- head.rows[2].cells[2].style.whiteSpace = "nowrap";
+ head.rows[2].cells[2].style.whiteSpace = "nowrap";
head.rows[2].cells[2].appendChild( this.document.createTextNode(this.ui.tabs[i].caption) )
}
@@ -121,10 +124,12 @@
for (var i=0; i<this.ui.headers.length; i++)
{
var head = this.ui.headers[i];
+
if (i == index)
{
head.style.marginLeft = "0px"
- head.style.position = ""
+ head.style.marginTop = "0px"
+
STools.applyStyle (head.rows[0].cells[2], this.ui.config.headCell1SelectedStyle, this.ui.config.headCell1SelectedClass);
STools.applyStyle (head.rows[1].cells[1], this.ui.config.headCell1SelectedStyle, this.ui.config.headCell1SelectedClass);
STools.applyStyle (head.rows[2].cells[0], this.ui.config.headCell1SelectedStyle, this.ui.config.headCell1SelectedClass);
@@ -143,10 +148,8 @@
else
{
head.style.marginLeft = "1px"
- if (!STools.is_ie) head.style.position = "relative"
- head.style.top = "+2"
- STools.applyStyle (head.rows[0].cells[2], this.ui.config.headCell1Style, this.ui.config.headCell1Class);
- STools.applyStyle (head.rows[1].cells[1], this.ui.config.headCell1Style, this.ui.config.headCell1Class);
+ head.style.marginTop = "2px"
+
STools.applyStyle (head.rows[2].cells[0], this.ui.config.headCell1Style, this.ui.config.headCell1Class);
STools.applyStyle (head.rows[2].cells[3], this.ui.config.headCell2Style, this.ui.config.headCell2Class);
STools.applyStyle (head.rows[1].cells[3], this.ui.config.headCell3Style, this.ui.config.headCell3Class);
@@ -191,13 +194,13 @@
this.imgClass = "";
this.headTableStyle = {
- display: "inline",
+ float: "left",
padding: "0px",
margin: "0px",
- borderCollapse: "collapse",
- verticalAlign: "bottom"
+ borderCollapse: "collapse"/*,
+ verticalAlign: "bottom"*/
}
- this.headTableClass = "";
+ this.headTableClass = "stab_tabs";
this.headCell1Style = {
backgroundColor: "#ffffff"
Index: main/kernel/stylesheets/ui.xsl
===================================================================
--- main/kernel/stylesheets/ui.xsl (revision 322)
+++ main/kernel/stylesheets/ui.xsl (working copy)
@@ -139,6 +139,8 @@
SContextualPanel.css = "<xsl:value-of select="$contextPath"/>/kernel/resources/css/STools/";
STree.css = "<xsl:value-of select="$contextPath"/>/kernel/resources/css/STools/";
STree.img = "<xsl:value-of select="$contextPath"/>/kernel/resources/img/STools/";
+ STab.css = "<xsl:value-of select="$contextPath"/>/kernel/resources/css/STools/";
+ STab.img = "<xsl:value-of select="$contextPath"/>/kernel/resources/img/STools/";
SListView.css = "<xsl:value-of select="$contextPath"/>/kernel/resources/css/STools/";
SListView.viewerNoPreviewMessage = "<i18n:text i18n:key="KERNEL_UI_LISTVIEW_PREVIEW_NOTAVAILABLE" i18n:catalogue="kernel"/>";
</script>
STree - l'erreur était présente sous FF2 déjà. Corrigée
Reste les calendriers