Author: nbelaevski
Date: 2008-07-17 11:18:21 -0400 (Thu, 17 Jul 2008)
New Revision: 9662
Modified:
trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanelBorders.js
Log:
https://jira.jboss.org/jira/browse/RF-3923
Modified:
trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanelBorders.js
===================================================================
---
trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanelBorders.js 2008-07-17
15:06:25 UTC (rev 9661)
+++
trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanelBorders.js 2008-07-17
15:18:21 UTC (rev 9662)
@@ -90,11 +90,12 @@
var doResize;
var element = $(this.modalPanel.cdiv);
- if (id.indexOf('panelHeader') > 0) {
+
+ if (diff.deltaWidth || diff.deltaHeight) {
+ doResize = this.modalPanel.invokeEvent("resize",event,null,element);
+ } else if (diff.deltaX || diff.deltaY) {
doResize = this.modalPanel.invokeEvent("move",event,null,element);
- } else{
- doResize = this.modalPanel.invokeEvent("resize",event,null,element);
- }
+ }
var vetoes;