Skip to content

Instantly share code, notes, and snippets.

@jonathanweiss
Created March 22, 2010 10:58
Show Gist options
  • Save jonathanweiss/339969 to your computer and use it in GitHub Desktop.
Save jonathanweiss/339969 to your computer and use it in GitHub Desktop.
Playground demo for bug #2573
var doc = this.getRoot();
var t = new qx.ui.tabview.TabView();
for (var i=1; i<=20; i++)
{
var page = new qx.ui.tabview.Page("Page #" + i, "icon/16/apps/utilities-terminal.png");
page.setLayout(new qx.ui.layout.VBox());
page.add(new qx.ui.basic.Label("Page #" + i + " with close button."));
t.add(page);
}
t.set({
allowGrowX : false,
allowGrowY : false,
minWidth : 300
})
sc = new qx.ui.container.Scroll();
sc.setScrollbar("on", "on");
sc.add(t, {top : 100, left : 10});
doc.add(sc,
{
left : 100,
top : 50
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment