am a39d3bb0
: docs: fix resizeAll script for IE6 so that the resizeWidth function is only called when the side navigation is actually resizable
Merge commit 'a39d3bb0c9001c79f93ae829d564e5fef27a573a' into eclair-plus-aosp * commit 'a39d3bb0c9001c79f93ae829d564e5fef27a573a': docs: fix resizeAll script for IE6 so that the resizeWidth function
This commit is contained in:
@@ -136,12 +136,13 @@ function init() {
|
|||||||
sidenav = $("#side-nav");
|
sidenav = $("#side-nav");
|
||||||
devdocNav = $("#devdoc-nav");
|
devdocNav = $("#devdoc-nav");
|
||||||
|
|
||||||
|
var cookiePath = "";
|
||||||
if (location.href.indexOf("/reference/") != -1) {
|
if (location.href.indexOf("/reference/") != -1) {
|
||||||
var cookiePath = "reference_";
|
cookiePath = "reference_";
|
||||||
} else if (location.href.indexOf("/guide/") != -1) {
|
} else if (location.href.indexOf("/guide/") != -1) {
|
||||||
var cookiePath = "guide_";
|
cookiePath = "guide_";
|
||||||
} else if (location.href.indexOf("/resources/") != -1) {
|
} else if (location.href.indexOf("/resources/") != -1) {
|
||||||
var cookiePath = "resources_";
|
cookiePath = "resources_";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isMobile) {
|
if (!isMobile) {
|
||||||
@@ -269,8 +270,10 @@ function resizeWidth() {
|
|||||||
* 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/");
|
||||||
|
Reference in New Issue
Block a user