Author: nbelaevski
Date: 2007-03-20 16:29:11 -0400 (Tue, 20 Mar 2007)
New Revision: 104
Modified:
trunk/richfaces/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
Log:
Missed size setting for IFRAME - fixed
Modified:
trunk/richfaces/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
===================================================================
---
trunk/richfaces/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2007-03-20
19:45:08 UTC (rev 103)
+++
trunk/richfaces/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2007-03-20
20:29:11 UTC (rev 104)
@@ -258,7 +258,7 @@
if (ModalPanel.disableSelects && !this.iframe) {
new Insertion.Top(this.cdiv,
"<iframe src=\"javascript:''\" frameborder=\"0\"
scrolling=\"no\" id=\"" + this.markerId.id + "IFrame\""
+
- "style=\"position: absolute; width: 100%; height: 100%; background-color:
white; overflow-y: hidden; z-index: 1;\">" +
+ "style=\"position: absolute; width: 1px; height: 1px; background-color:
white; overflow-y: hidden; z-index: 1;\">" +
"</iframe>");
this.iframe = $(this.markerId.id + "IFrame");
@@ -283,6 +283,9 @@
options.width = this.minWidth;
}
+ if (this.iframe) {
+ this.iframe.style.width = options.width + 'px';
+ }
this.contentDiv.style.width = options.width + 'px';
}
@@ -291,6 +294,9 @@
options.height = this.minHeight;
}
+ if (this.iframe) {
+ this.iframe.style.height = options.height + 'px';
+ }
this.contentDiv.style.height = options.height + 'px';
}
@@ -517,7 +523,11 @@
}
Element.setStyle(this.cdiv, cssHash);
+
Element.setStyle(this.contentDiv, cssHashWH);
+ if (this.iframe) {
+ Element.setStyle(this.iframe, cssHashWH);
+ }
var w = this.context.width();
var h = this.context.height();
Show replies by date