Announcement

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

    Window extending outside of view port

    I have the following basic layout:

    Code:
    public MainPanel()
    {
      SectionStackSection topStrip = new SectionStackSection(); 
      topStrip.setItems(ComponentFactory.create(Module.MENU));
      topStrip.setExpanded(true); 
      topStrip.setCanCollapse(false);
      topStrip.setShowHeader(false);
    
      SectionStackSection mainView = new SectionStackSection();  
      mainView.setItems(ComponentFactory.create(Module.MAIN));  
      mainView.setExpanded(true); 
      mainView.setCanCollapse(false);
      mainView.setShowHeader(false);
    
      SectionStackSection widgets = new SectionStackSection(); 
      widgets.setItems(ComponentFactory.create(Module.WIDGETS));  
      widgets.setExpanded(false);  
    
      this.setSections(topStrip, mainView, widgets);  
      this.setVisibilityMode(VisibilityMode.MULTIPLE);  
    
      this.setWidth100();  
      this.setHeight100();   
    }
    The top strip is used to keep a menu bar, a search bar and and icon menu, the main frame consists of 5 grids, and the bottom widget is a horizontal layout. In poor ASCII it looks something like this (the left-most grid is a tree grid, the rest are list grids):

    Code:
    ---------------------------------------
    Menu
    ---------------------------------------
              |        |
              |        |            
              |        | 
              |        |-------------------
              |        |        |
              |        |        |    
              |        |        |
              |        |        |
    ---------------------------------------
    Widget section stack
    ---------------------------------------
    My problem is that my layout sometimes grows just a little larger than the browser viewport, causing scrollbars to pop up. Am I doing something obviously wrong, or is there some setting I need to get right in order for this not to happen?

    I'm running the latest smartgwt jar, java 6 on a windows 7 machine in Firefox and Chrome.

    Grateful for any help or ideas.

    #2
    Makesure you don't have any external CSS (see the FAQ).

    If a Window is meant to be full screen, turn off it's shadow or the shadow will extend offscreen.

    Comment


      #3
      Shadow is turned off, and there is no other css other than the one shipped with smart gwt in the entire project.

      Is there anything else that could affect this?

      Comment


        #4
        Check very very carefully for external CSS and read the FAQ about it (the most common cause is left over core GWT theme imports). Most people deny it at least once :)

        If that's not the problem, show a standalone test case, but include all of your relevant versions (see FAQ) and which skin you are using.

        Comment

        Working...
        X