Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@
},
methods: {
handleOverflow() {
const maxWidth = this.$refs.breadcrumbs.$el.offsetWidth;
let totalWidth = 0;
this.breadcrumbStartingIndex = 0;
this.$nextTick(() => {
if (this.$refs.breadcrumb) {
if (this.$refs.breadcrumb && this.$refs.breadcrumb) {
const maxWidth = this.$refs.breadcrumbs.$el.offsetWidth;
for (var i = this.$refs.breadcrumb.length - 1; i >= 0; --i) {
totalWidth += this.$refs.breadcrumb[i].$el.offsetWidth + 40;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, this still doesn't fix the issue. If anything, it would be a partial fix--in some screen sizes it works on others it doesn't

totalWidth += this.$refs.breadcrumb[i].$el.offsetWidth + 60;

// Bounds exceeded, go back to previous index
if (totalWidth >= maxWidth - 48) {
Expand Down