Merge pull request #1585 from owncloud/fix_breadcrumb_resizing

count divs in actions instead of action div itself (is set to 100%)
This commit is contained in:
Lukas Reschke 2013-02-10 06:38:19 -08:00
commit 72a33e01e6
1 changed files with 4 additions and 3 deletions

View File

@ -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();