Fix condition checking for resizing breadcrumbs

This commit is contained in:
Michael Gapczynski 2012-08-04 15:57:49 -04:00
parent 207ca3ec06
commit 086397d8a1
1 changed files with 1 additions and 1 deletions

View File

@ -547,7 +547,7 @@ $(document).ready(function() {
function resizeBreadcrumbs(firstRun) { function resizeBreadcrumbs(firstRun) {
var width = $(this).width(); var width = $(this).width();
if (width != lastWidth) { if (width != lastWidth) {
if (width < lastWidth || firstRun && width < breadcrumbsWidth) { if ((width < lastWidth || firstRun) && width < breadcrumbsWidth) {
if (hiddenBreadcrumbs == 0) { if (hiddenBreadcrumbs == 0) {
breadcrumbsWidth -= $(breadcrumbs[1]).get(0).offsetWidth; breadcrumbsWidth -= $(breadcrumbs[1]).get(0).offsetWidth;
$(breadcrumbs[1]).find('a').hide(); $(breadcrumbs[1]).find('a').hide();