1. #1
    Ext GWT Premium Member
    Join Date
    Sep 2009
    Location
    USA
    Posts
    9
    Vote Rating
    0
    tjeske is on a distinguished road

      0  

    Default ContentPanel text does not scroll with panel

    ContentPanel text does not scroll with panel


    Repro.

    Create a contentpanel that contains text or an html widget that extends past the viewport which causes a vertical scroll.

    Load the page in IE 7 (have seen it inconsistently in IE 8).
    Scroll up and down.

    Results:
    The header and borders of the contentpanel scroll up and down, but then contents of the panel remain fixed.


    Code:
    public class TestPanel extends LayoutContainer {
    
            public TestPanel() {
    
                setStyleAttribute("font-weight", "normal");
                setScrollMode(Scroll.AUTOY);
                setBorders(true);
                ContentPanel testPanel = new ContentPanel();
                testPanel.setFrame(true);
                testPanel.setWidth(100);
                testPanel.setHeading("test");
                testPanel.addText("test test test test test test test test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test testtest test test test test test");        
                
                add(testPanel);
                layout();
    
                }
    
        @Override
        protected void onRender(Element pParent, int pIndex) {
            super.onRender(pParent, pIndex);
            
        }
    
    }

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Which version are you using?

    You probably use GXT before 2.2.0 and a strict doctype. A strict doctype is not supported by earlier versions.

Similar Threads

  1. Panel and text display / scroll
    By pierrem in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 23 Aug 2010, 4:44 PM
  2. No Scroll if ContentPanel has Header
    By paco_online in forum Ext GWT: Help & Discussion (1.x)
    Replies: 0
    Last Post: 22 Feb 2009, 11:45 AM
  3. Scroll doesn't appear in the ContentPanel
    By makados in forum Ext GWT: Help & Discussion (1.x)
    Replies: 5
    Last Post: 13 Jun 2008, 1:06 PM
  4. ContentPanel - scroll bars
    By dwijay in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 15 Jan 2008, 6:47 PM
  5. ContentPanel scroll problems in IE
    By cristidb in forum Ext 1.x: Bugs
    Replies: 2
    Last Post: 11 Sep 2007, 11:38 AM

Thread Participants: 1

Tags for this Thread