Home | History | Annotate | Download | only in front_end

Lines Matching refs:crumbs

75     this.crumbsElement.className = "crumbs";
558 var crumbs = this.crumbsElement;
559 for (var crumb = crumbs.firstChild; crumb; crumb = crumb.nextSibling) {
612 var crumbs = this.crumbsElement;
613 var crumb = crumbs.firstChild;
631 var crumbs = this.crumbsElement;
634 var crumb = crumbs.firstChild;
647 // We don't need to rebuild the crumbs, but we need to adjust sizes
653 crumbs.removeChildren();
661 // Clicking a collapsed crumb will expose the hidden crumbs.
723 if (!crumbs.childNodes.length)
726 crumbs.appendChild(crumb);
729 if (crumbs.hasChildNodes())
730 crumbs.lastChild.addStyleClass("start");
749 var crumbs = this.crumbsElement;
750 if (!crumbs.childNodes.length || crumbs.offsetWidth <= 0)
751 return; // No crumbs, do nothing.
759 var crumb = crumbs.firstChild;
772 // deciding to shorten any crumbs.
773 if (crumb !== crumbs.lastChild)
775 if (crumb !== crumbs.firstChild)
787 // The order of the crumbs in the document is opposite of the visual order.
788 crumbs.firstChild.addStyleClass("end");
789 crumbs.lastChild.addStyleClass("start");
792 var crumbsTotalOffsetLeft = crumbs.totalOffsetLeft();
803 return (crumbsTotalOffsetLeft + crumbs.offsetWidth + rightPadding) < windowInnerWidth;
807 return; // No need to compact the crumbs, they all fit at full size.
827 for (var i = 0; i < crumbs.childNodes.length; ++i) {
828 if (crumbs.childNodes[i] === significantCrumb) {
837 var shrinkCrumb = crumbs.childNodes[index];
841 return true; // No need to compact the crumbs more.
845 // Shrink crumbs one at a time by applying the shrinkingFunction until the crumbs
846 // fit in the container or we run out of crumbs to shrink.
848 // Crumbs are shrunk on only one side (based on direction) of the signifcant crumb.
849 var index = (direction > 0 ? 0 : crumbs.childNodes.length - 1);
856 // Crumbs are shrunk in order of descending distance from the signifcant crumb,
857 // with a tie going to child crumbs.
859 var endIndex = crumbs.childNodes.length - 1;
878 var crumb = crumbs.firstChild;
916 crumb = crumbs.lastChild;
946 // crumbs that the user might not care much about.
948 // Compact child crumbs.
952 // Collapse child crumbs.
957 // Compact ancestor crumbs, or from both sides if focused.
961 // Collapse ancestor crumbs, or from both sides if focused.