details:   https://code.openbravo.com/erp/devel/pi/rev/c7e35cf0b073
changeset: 15107:c7e35cf0b073
user:      Iván Perdomo <ivan.perdomo <at> openbravo.com>
date:      Tue Jan 10 18:19:38 2012 +0100
summary:   Fixes issue 19349: Change the layout to use relative instead of 
fixed values

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js
          |  12 ++++-----
 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-view.js
 |   7 ++---
 2 files changed, 8 insertions(+), 11 deletions(-)

diffs (74 lines):

diff -r 99cab44d0c25 -r c7e35cf0b073 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js
       Tue Jan 10 17:33:39 2012 +0100
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js
       Tue Jan 10 18:19:38 2012 +0100
@@ -11,7 +11,7 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2010-2011 Openbravo SLU
+ * All portions are Copyright (C) 2010-2012 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -60,9 +60,9 @@
     this.views = [];
 
     this.processLayout = isc.VStack.create({
-      height: 1,
-      width: 1,
-      overflow: 'visible',
+      height: '100%',
+      width: '100%',
+      overflow: 'auto',
       visibility: 'hidden'
     });
 
@@ -125,9 +125,7 @@
       if (isc[className]) {
         this.selectedState = this.activeView && this.activeView.viewGrid && 
this.activeView.viewGrid.getSelectedState();
         this.runningProcess = isc[className].create(isc.addProperties({}, 
params, {
-          parentWindow: this,
-          width: this.width,
-          height: this.height
+          parentWindow: this
         }));
 
         this.processLayout.addMember(this.runningProcess);
diff -r 99cab44d0c25 -r c7e35cf0b073 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-view.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-view.js
      Tue Jan 10 17:33:39 2012 +0100
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-view.js
      Tue Jan 10 18:19:38 2012 +0100
@@ -11,7 +11,7 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2011 Openbravo SLU
+ * All portions are Copyright (C) 2011-2012 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -36,7 +36,7 @@
   width: '100%',
   height: '100%',
   overflow: 'auto',
-  position: 'absolute',
+  autoSize: false,
 
   dataSource: null,
 
@@ -56,7 +56,6 @@
     }
 
     okButton = isc.OBFormButton.create({
-      //FIXME: Move to AD_Message
       title: 'Done',
       _buttonValue: 'DONE',
       click: actionClick
@@ -83,7 +82,7 @@
     this.viewGrid = isc.OBPickAndExecuteGrid.create({
       view: this,
       fields: this.gridFields,
-      height: (this.parentWindow.height - 200),
+      height: '80%',
       dataSource: this.dataSource,
       gridProperties: this.viewProperties.gridProperties
     });

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to