count divs in actions instead of action div itself (is set to 100%)

remotes/origin/stable5
Jörn Friedrich Dreyer 14 years ago
parent 1c56539c01
commit bf4a073dca
  1. 7
      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();

Loading…
Cancel
Save