modules/enterprise/gui/coregui/src/main/java/org/rhq/coregui/client/dashboard/DashboardsView.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 1a91f5466e59936ffdda887197981e1dcd78cd3b Author: Mike Thompson mithomps@redhat.com Date: Tue Dec 3 15:22:17 2013 -0800
[BZ 1037860] Too many Dashboard tabs disappear off screen. Provide a way to easy navigate many tabs by both scrolling tabs and jumping directly to a dashboard tab.
diff --git a/modules/enterprise/gui/coregui/src/main/java/org/rhq/coregui/client/dashboard/DashboardsView.java b/modules/enterprise/gui/coregui/src/main/java/org/rhq/coregui/client/dashboard/DashboardsView.java index faf4d2f..b89ea46 100644 --- a/modules/enterprise/gui/coregui/src/main/java/org/rhq/coregui/client/dashboard/DashboardsView.java +++ b/modules/enterprise/gui/coregui/src/main/java/org/rhq/coregui/client/dashboard/DashboardsView.java @@ -31,6 +31,7 @@ import java.util.Set;
import com.google.gwt.user.client.rpc.AsyncCallback; import com.smartgwt.client.types.Overflow; +import com.smartgwt.client.types.TabBarControls; import com.smartgwt.client.util.BooleanCallback; import com.smartgwt.client.util.SC; import com.smartgwt.client.widgets.Canvas; @@ -205,7 +206,7 @@ public class DashboardsView extends EnhancedVLayout implements DashboardContaine buttons.addMember(editButton); buttons.addMember(newDashboardButton);
- tabSet.setTabBarControls(buttons); + tabSet.setTabBarControls(TabBarControls.TAB_SCROLLER, TabBarControls.TAB_PICKER, buttons );
tabSet.addTabSelectedHandler(new TabSelectedHandler() { public void onTabSelected(TabSelectedEvent tabSelectedEvent) {
rhq-commits@lists.fedorahosted.org