Fix condition checking for resizing breadcrumbs
This commit is contained in:
parent
207ca3ec06
commit
086397d8a1
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue