Since we are using 2.2.4 Gxt version to developing web application. We have a requirement to implement of horizontal scroll bar in the home page, I tried below code to implement but it is not working as expected. Could you please help me.

public RootPanel rootPanel;
final Viewport vp = new Viewport();
vp.setLayout(new FitLayout());
vp.setScrollMode(Style.Scroll.ALWAYS);
final BorderLayout layout = new BorderLayout();
final LayoutContainer layoutContainer = new LayoutContainer();
layoutContainer.setLayout(layout);
layoutContainer.setBorders(false);
layoutContainer.setAutoHeight(true);
layoutContainer.setAutoWidth(true);
vp.add(layoutContainer);
rootPanel.add(vp);

Thanks in Advance.