summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-02-10 12:38:16 +0100
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-02-10 12:38:16 +0100
commitbf4a073dca9cd44ca7a05a411ecf80b43db7f545 (patch)
tree0ded985dfbeeea330ece480f62363e63b1f912bd /apps/files
parent1c56539c01c162676a05d90e3598b7d68394ac73 (diff)
downloadnextcloud-server-bf4a073dca9cd44ca7a05a411ecf80b43db7f545.tar.gz
nextcloud-server-bf4a073dca9cd44ca7a05a411ecf80b43db7f545.zip
count divs in actions instead of action div itself (is set to 100%)
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/js/files.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 5c5b430a8d4..918182162d4 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -685,9 +685,10 @@ $(document).ready(function() {
breadcrumbsWidth += $(breadcrumb).get(0).offsetWidth;
});
- if ($('#controls .actions').length > 0) {
- breadcrumbsWidth += $('#controls .actions').get(0).offsetWidth;
- }
+
+ $.each($('#controls .actions>div'), function(index, action) {
+ breadcrumbsWidth += $(action).get(0).offsetWidth;
+ });
function resizeBreadcrumbs(firstRun) {
var width = $(this).width();