Author: nbelaevski
Date: 2008-10-12 15:53:49 -0400 (Sun, 12 Oct 2008)
New Revision: 10726
Modified:
trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
Log:
https://jira.jboss.org/jira/browse/RF-4593
Modified:
trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
===================================================================
---
trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2008-10-11
14:14:41 UTC (rev 10725)
+++
trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2008-10-12
19:53:49 UTC (rev 10726)
@@ -471,9 +471,6 @@
show: function(event, opts) {
if(!this.shown && this.invokeEvent("beforeshow",event,null,element))
{
- this.currentMinHeight = ModalPanel.getMinimumSize((opts.minHeight || opts.minHeight ==
0) ? opts.minHeight : this.minHeight);
- this.currentMinWidth = ModalPanel.getMinimumSize((opts.minWidth || opts.minWidth == 0)
? opts.minWidth : this.minWidth);
-
var element = this.id;
this.preventFocus();
@@ -522,6 +519,9 @@
Object.extend(this.userOptions, opts);
}
+ this.currentMinHeight = ModalPanel.getMinimumSize((options.minHeight ||
options.minHeight == 0) ? options.minHeight : this.minHeight);
+ this.currentMinWidth = ModalPanel.getMinimumSize((options.minWidth || options.minWidth
== 0) ? options.minWidth : this.minWidth);
+
var eContentElt = this.getContentElement();
if (!this.options.autosized) {