details:   https://code.openbravo.com/erp/devel/pi/rev/27f29f685bb4
changeset: 16486:27f29f685bb4
user:      David Baz Fayos <david.baz <at> openbravo.com>
date:      Thu May 10 15:38:32 2012 +0200
summary:   Related to issue 20207: Deprecated (and not used) classic menu now 
opens ok using IE9 and HTML5

diffstat:

 src/org/openbravo/erpCommon/utility/VerticalMenu.html        |  10 ++++++++--
 src/org/openbravo/erpCommon/utility/VerticalMenuLoading.html |  10 ++++++++--
 2 files changed, 16 insertions(+), 4 deletions(-)

diffs (40 lines):

diff -r d993d583464c -r 27f29f685bb4 
src/org/openbravo/erpCommon/utility/VerticalMenu.html
--- a/src/org/openbravo/erpCommon/utility/VerticalMenu.html     Thu May 10 
15:19:17 2012 +0200
+++ b/src/org/openbravo/erpCommon/utility/VerticalMenu.html     Thu May 10 
15:38:32 2012 +0200
@@ -43,8 +43,14 @@
         var mtop2 = document.getElementById("MenuTop2");
         var mbottom = document.getElementById("MenuBottom");
         var body = document.getElementsByTagName("BODY");
-        var h = body[0].clientHeight;
-        var w = body[0].clientWidth;
+        var h, w;
+        if (isIE9Strict) {
+          h = window.innerHeight;
+          w = window.innerWidth;
+        } else {
+          h = body[0].clientHeight;
+          w = body[0].clientWidth;
+        }
         var name = window.navigator.appName;
         var mnuWidth = w - (mleft.clientWidth + mright.clientWidth) - 
((name.indexOf("Microsoft")==-1)?2:0);
         var mnuHeight = h -(mtop.clientHeight + mtop2.clientHeight + 
mbottom.clientHeight) - ((name.indexOf("Microsoft")==-1)?2:0);
diff -r d993d583464c -r 27f29f685bb4 
src/org/openbravo/erpCommon/utility/VerticalMenuLoading.html
--- a/src/org/openbravo/erpCommon/utility/VerticalMenuLoading.html      Thu May 
10 15:19:17 2012 +0200
+++ b/src/org/openbravo/erpCommon/utility/VerticalMenuLoading.html      Thu May 
10 15:38:32 2012 +0200
@@ -44,8 +44,14 @@
         var mtop2 = document.getElementById("MenuTop2");
         var mbottom = document.getElementById("MenuBottom");
         var body = document.getElementsByTagName("BODY");
-        var h = body[0].clientHeight;
-        var w = body[0].clientWidth;
+        var h, w;
+        if (isIE9Strict) {
+          h = window.innerHeight;
+          w = window.innerWidth;
+        } else {
+          h = body[0].clientHeight;
+          w = body[0].clientWidth;
+        }
         var name = window.navigator.appName;
         mnu.style.height = h -(mtop.clientHeight + mtop2.clientHeight + 
mbottom.clientHeight) - ((name.indexOf("Microsoft")==-1)?2:0);
         mnu.style.width = w - (mleft.clientWidth + mright.clientWidth) - 
((name.indexOf("Microsoft")==-1)?2:0);

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to