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

This commit is contained in:
Jörn Friedrich Dreyer 2013-02-10 12:38:16 +01:00
parent 1c56539c01
commit bf4a073dca

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