Document Information

Last modified:
2008/04/14 11:44 by ecker

How to set a TabView autosized

Here is the solution:

var tv = new qx.ui.pageview.tabview.TabView;
tv.set({ width : 'auto', height : 'auto' });
tv.getPane().setHeight('auto');   // This step is important
 
var b1 = new qx.ui.pageview.tabview.Button('One');
var b2 = new qx.ui.pageview.tabview.Button('Two');
tv.getBar().add(b1, b2);
 
var p1 = new qx.ui.pageview.tabview.Page(b1);
p1.add(new qx.ui.basic.Atom('Page one'));
 
var p2 = new qx.ui.pageview.tabview.Page(b2);
p2.add(new qx.ui.basic.Atom('Page two'));
 
tv.getPane().add(p1, p2);
tv.getBar().add(b1, b2);

Information

Last modified:
2008/04/14 11:44 by ecker

Account

Not logged in

 
 

Job Offers

To further improve qooxdoo we are seeking javascript developers. Read more...

Rich Ajax Platform (RAP)

RAP uses qooxdoo, Java and the Eclipse development model to build rich web applications. Read more...

qooxdoo Web Toolkit (QWT)

Similar to GWT this framework allows to create impressive qooxdoo applications just using Java. Read more...

Pustefix

Pustefix is a MVC-based web application framework using Java and XML/XSLT. Read more...

 
SourceForge.net Logo

Bad Behavior has blocked 0 potential spam attempts in the last 7 days.