SmartGWT Canvas width problem

Posted by Doug on Stack Overflow See other posts from Stack Overflow or by Doug
Published on 2010-04-05T23:02:48Z Indexed on 2010/04/06 9:33 UTC
Read the original article Hit count: 821

Filed under:
|
|
|
|

I am having problems with showing my entire SmartGWT Canvas on my initial page. I've stripped everything out and am left with an extremely basic EntryPoint to illustrate my issue. When I just create a Canvas and add it to the root panel, I get a horizontal scrollbar in my browser. Can anyone explain why and what I can do to have the Canvas sized to the width of the window?

Thanks in advance.

public class TestModule implements EntryPoint
    {
    protected Canvas           view      = null;
    /**
     * This is the entry point method.
     */
    public void onModuleLoad()
    {
        view = new Canvas();
        view.setWidth100();
        view.setHeight100();
        view.setShowEdges( true );
        RootPanel.get().add( view );
    }
}

© Stack Overflow or respective owner

Related posts about smartgwt

Related posts about canvas