From: Jean-Philippe Lang Date: Thu, 17 Dec 2009 18:23:00 +0000 (+0000) Subject: Do not hide scroll buttons if some tabs are still hidden. X-Git-Tag: 0.9.0~84 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b8cd280bec05f76c0a889f9650fc1a88b33ddc4e;p=redmine.git Do not hide scroll buttons if some tabs are still hidden. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3178 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 1a5e0c04f..5221bf4ce 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -114,7 +114,7 @@ function displayTabsButtons() { tabsWidth += lis[i].getWidth() + 6; } } - if (tabsWidth < el.getWidth() - 60) { + if ((tabsWidth < el.getWidth() - 60) && (lis[0].visible())) { el.down('div.tabs-buttons').hide(); } else { el.down('div.tabs-buttons').show();