PDA

View Full Version : [CLOSED] [2.0 M2] FF & Chrome missing horizontal scrollbar for large content



winter
22 May 2009, 4:39 PM
This issue has been reported before in thread http://extjs.com/forum/showthread.php?t=59974, number 3: "When I put anything too large in the ContentPanel with FitLayout and Scroll.AUTO, it's not detected correctly and the scroll bar doesn't appear."

Please find below a test case for issue number 3. Code below works fine in IE, fails to display a horizontal scrollbar in Firefox 3 & Chrome.


public void onModuleLoad() {
ContentPanel parent = new ContentPanel();
parent.setLayout(new FitLayout());
parent.setScrollMode(Scroll.AUTO);

ContentPanel child = new ContentPanel();
child.setSize(2000,2000);
parent.add(child);

RootPanel.get().add(parent);
}

sven
23 May 2009, 1:16 AM
There are several issues in your code. You need to size your outer panel. Also if using fitlayout you dont need to size your child as the fitlayout will automatically size it. I am closing this issue