aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/breadcrumb.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/js/breadcrumb.js')
-rw-r--r--apps/files/js/breadcrumb.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files/js/breadcrumb.js b/apps/files/js/breadcrumb.js
index 6521b8cf484..f0a4da2d6d9 100644
--- a/apps/files/js/breadcrumb.js
+++ b/apps/files/js/breadcrumb.js
@@ -176,6 +176,7 @@
dirInfo: this.dirInfo
});
$crumb.append(view.$el);
+ $menuItem.append(view.$el.clone(true));
}, this);
// setup drag and drop
@@ -326,7 +327,7 @@
// Note that the crumbs shown always overflow the parent width
// (except, of course, when they all fit in).
while (this.$el.find(this.hiddenCrumbSelector).length > 0
- && this.getTotalWidth() <= this.$el.parent().width()) {
+ && Math.round(this.getTotalWidth()) <= Math.round(this.$el.parent().width())) {
this._showCrumb();
}
@@ -342,7 +343,7 @@
// If container is smaller than content
// AND if there are crumbs left to hide
- while (this.getTotalWidth() > availableWidth
+ while (Math.round(this.getTotalWidth()) > Math.round(availableWidth)
&& this.$el.find(this.crumbSelector).length > 0) {
// As soon as one of the crumbs is hidden the menu will be
// shown. This is needed for proper results in further width