Ticket #4836: html.js.patch

File html.js.patch, 0.6 kB (added by guest, 15 months ago)
  • html.js

     
    828828                // will offset to right when there is a horizonal scrollbar. 
    829829                if(dojo.isIE && !dojo._isBodyLtr()){ 
    830830                        var de = dojo.doc.documentElement; 
    831                         return scrollLeft + de.clientWidth - de.scrollWidth; // Integer 
     831                        if (document.compatMode == 'BackCompat') { 
     832        return scrollLeft + dojo.body().width - de.scrollWidth; // Integer 
     833                        } else { 
     834                          return scrollLeft + de.clientWidth - de.scrollWidth; // Integer 
     835                  } 
    832836                } 
    833837                return scrollLeft; // Integer 
    834838        }