details: /erp/devel/pi/rev/2513041b7794
changeset: 12098:2513041b7794
user: David Baz Fayos <david.baz <at> openbravo.com>
date: Wed May 11 16:37:14 2011 +0200
summary: Fixed issue 17064: Now toolbar scroll mouse down doesn't move the
focus to the top level
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-eventhandler.js
| 4 +++-
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-standard-window.js
| 1 +
2 files changed, 4 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r 797e4542bfcb -r 2513041b7794
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-eventhandler.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-eventhandler.js
Wed May 11 16:18:29 2011 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-eventhandler.js
Wed May 11 16:37:14 2011 +0200
@@ -59,7 +59,9 @@
return true;
}
}
- if (!canvas.parentElement && canvas.grid) {
+ if (canvas.mouseDownCancelParentPropagation) { // Added to be able
to scroll the toolbar without focusing top level view
+ canvas = null;
+ } else if (!canvas.parentElement && canvas.grid) {
canvas = canvas.grid;
} else {
canvas = canvas.parentElement;
diff -r 797e4542bfcb -r 2513041b7794
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-standard-window.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-standard-window.js
Wed May 11 16:18:29 2011 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-standard-window.js
Wed May 11 16:37:14 2011 +0200
@@ -56,6 +56,7 @@
this.views = [];
this.toolBarLayout = isc.HLayout.create({
+ mouseDownCancelParentPropagation: true,
width: '100%',
height: 1, // is set by its content
overflow: 'visible'
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits