]> source.dussan.org Git - redmine.git/commitdiff
Do not hide scroll buttons if some tabs are still hidden.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 17 Dec 2009 18:23:00 +0000 (18:23 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 17 Dec 2009 18:23:00 +0000 (18:23 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3178 e93f8b46-1217-0410-a6f0-8f06a7374b81

public/javascripts/application.js

index 1a5e0c04f1679fe49eb7f17fd85837cbadbe69c5..5221bf4ce212e1ff6408728e884cdf9731e1adb4 100644 (file)
@@ -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();