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);
}
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);
}