diff options
author | Marc Englund <marc.englund@itmill.com> | 2006-11-28 15:27:02 +0000 |
---|---|---|
committer | Marc Englund <marc.englund@itmill.com> | 2006-11-28 15:27:02 +0000 |
commit | 82a4bc4d973ec74ff230869354e981e06f7ed5a7 (patch) | |
tree | e5f6d41cf03f1dae04e93eab73e79de0e6e7cb11 /WebContent | |
parent | faa3e21134907796b606f31dbaf3b0ca3d54c227 (diff) | |
download | vaadin-framework-82a4bc4d973ec74ff230869354e981e06f7ed5a7.tar.gz vaadin-framework-82a4bc4d973ec74ff230869354e981e06f7ed5a7.zip |
#61 fixed
svn changeset:121/svn branch:toolkit
Diffstat (limited to 'WebContent')
-rw-r--r-- | WebContent/themes/default/theme.js | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/WebContent/themes/default/theme.js b/WebContent/themes/default/theme.js index c84d5ede1e..a2dd607e29 100644 --- a/WebContent/themes/default/theme.js +++ b/WebContent/themes/default/theme.js @@ -405,6 +405,16 @@ DefaultTheme.prototype.createVariableElementTo = function(target,variableElement if (!variableElement) {
return null;
}
+ /* TODO FF kludge try, does not work - how to prevent flashing hiddens?
+ var d = this.createElementTo(target,"div");
+ d.style.border = "none";
+ d.style.background = "none";
+ d.style.padding = "0px";
+ d.style.margin = "0px;"
+ d.style.width = "0px";
+ d.style.height = "0px";
+ d.style.overflow = "hidden";
+ */
var input = this.createInputElementTo(target,"hidden");
input.variableId = variableElement.getAttribute("id");
input.variableName = variableElement.getAttribute("name");
@@ -528,9 +538,16 @@ DefaultTheme.prototype.createPaintableElement = function (renderer, uidl, target div.layoutInfo = li;
// Remove possible previous content from target
+ /* TODO remove when tested
while (div.firstChild != null) {
div.removeChild(div.firstChild);
}
+ */
+ div.innerHTML = "";
+ if (li&&li.captionNode) {
+ // caption placed elsewhere (form); see renderDefaultComponentHeader()
+ li.captionNode.innerHTML = "";
+ }
// Assign CSS class
this.setCSSDefaultClass(renderer,div,uidl);
@@ -541,7 +558,6 @@ DefaultTheme.prototype.createPaintableElement = function (renderer, uidl, target this.addCSSClass(div,"error");
}
- // Return reference to newly created div
return div;
}
@@ -1105,7 +1121,6 @@ DefaultTheme.prototype.renderWindow = function(renderer,uidl,target,layoutInfo) }
DefaultTheme.prototype.renderOpen = function(renderer,uidl,target,layoutInfo) {
- // Shortcuts
var theme = renderer.theme;
var src = uidl.getAttribute("src");
@@ -1119,8 +1134,7 @@ DefaultTheme.prototype.renderOpen = function(renderer,uidl,target,layoutInfo) { }
}
-DefaultTheme.prototype.renderFramewindow = function(renderer,uidl,target,layoutInfo) {
-
+DefaultTheme.prototype.renderFramewindow = function(renderer,uidl,target,layoutInfo) {
var theme = renderer.theme;
var client = renderer.client;
@@ -1588,7 +1602,7 @@ DefaultTheme.prototype.renderTextField = function(renderer,uidl,target, layoutIn // Create containing element
var div = renderer.theme.createPaintableElement(renderer,uidl,target,layoutInfo);
if (uidl.getAttribute("invisible")) return; // Don't render content if invisible
-
+
// Render default header
renderer.theme.renderDefaultComponentHeader(renderer,uidl,div, layoutInfo);
@@ -3315,7 +3329,8 @@ DefaultTheme.prototype.renderSelectOptionGroup = function(renderer,uidl,target,l // Create containing element
var div = theme.createPaintableElement(renderer,uidl,target);
-
+ if (uidl.getAttribute("invisible")) return; // Don't render content if invisible
+
// Create selection variable
var selectMode = uidl.getAttribute("selectmode");
var selectable = selectMode == "multi" || selectMode == "single";
@@ -3519,7 +3534,7 @@ DefaultTheme.prototype.renderCheckBox = function(renderer,uidl,target,layoutInfo ///////
-
+/* TODO merge or delete the rest
/**
* Render tree as a menubar.
|