am b6da4808: update for change Ia39d3bb0, which regressed a resizing hack for IE6.

Merge commit 'b6da4808699180c608bccef88ddb843411e663c7' into eclair-plus-aosp

* commit 'b6da4808699180c608bccef88ddb843411e663c7':
  update for change Ia39d3bb0, which regressed a resizing hack for IE6.
This commit is contained in:
Scott Main
2010-01-07 10:06:00 -08:00
committed by Android Git Automerger

View File

@@ -260,20 +260,20 @@ function resizeWidth() {
classesNav.css({width:sidenavWidth}); classesNav.css({width:sidenavWidth});
$("#packages-nav").css({width:sidenavWidth}); $("#packages-nav").css({width:sidenavWidth});
if ($(".side-nav-resizable").length) { // Must check if the nav is resizable because IE6 calls resizeWidth() from resizeAll() for all pages
var basePath = getBaseUri(location.pathname); var basePath = getBaseUri(location.pathname);
var section = basePath.substring(1,basePath.indexOf("/",1)); var section = basePath.substring(1,basePath.indexOf("/",1));
writeCookie("width", sidenavWidth, section, null); writeCookie("width", sidenavWidth, section, null);
} }
}
/* For IE6 only, /* For IE6 only,
* because it can't properly perform auto width for "doc-content" div, * because it can't properly perform auto width for "doc-content" div,
* avoiding this for all browsers provides better performance */ * avoiding this for all browsers provides better performance */
function resizeAll() { function resizeAll() {
resizeHeight(); resizeHeight();
if ($(".side-nav-resizable").length) {
resizeWidth(); resizeWidth();
} }
}
function getBaseUri(uri) { function getBaseUri(uri) {
var intlUrl = (uri.substring(0,6) == "/intl/"); var intlUrl = (uri.substring(0,6) == "/intl/");