Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Scrollbar appears regardless Overflow.HIDDEN

    SmartClient Version: v8.3_2012-11-20/LGPL Development Only (built 2012-11-20)
    GWT Version: 2.5
    Browser: Firefox 18.0.2

    I simply created a window with a Layout component. The window has scrollbars regardless the overflow setting has already been set to HIDDEN.

    Code:
    public class HelloWorld implements EntryPoint {
        public void onModuleLoad() {
            Window win = new Window();
            win.setShowEdges(false);
            win.setShowTitle(false);
            win.setShowHeader(false);
            win.setAutoCenter(true);
            win.setWidth(500);
            win.setHeight(500);
            win.setOverflow(Overflow.HIDDEN);
    
            VLayout container = new VLayout();
            container.setWidth(500);
            container.setHeight(500);
            container.setOverflow(Overflow.HIDDEN);
            container.setLayoutMargin(3);
    
            win.addItem(container);
            win.show();
        }
    }
    Dear developers, is this a bug or how can I get rid off the scrollbars?

    Note that I do not have this issue while using smartgwt 2.1 plus gwt 2.0.
    Last edited by stanleyxu2005; 15 Feb 2013, 23:35.

    #2
    Originally posted by stanleyxu2005 View Post
    Note that I do not have this issue while using smartgwt 2.1 plus gwt 2.0.
    After having called "win.setAutoSize(true)" the scrollbars go away. Should autosize be set to true by default, shouldn't it?

    Comment

    Working...
    X