I have a Label with rich=true holding a load of HTML in a smaller Scroll 
but I am not getting scroll bars.

The _getContentHeightForWidth dutifully reports a height of 879 but 
strangely getHeight on the label returns null -- perhaps it has yet to 
be computed cuz I am printing all this just after assembling the 
scroller and label and inserting them in a tab page. Inspecting the 
element in firebug I see a height of 65 from the embedded DIV up through 
the Scroll, qx inserted contents included.

The tab page in question has a Grow layout, and I could see in Firebug 
that as I resized the firbug pane the sizes change to reflect the sapce 
available above. (Cool!)

[Note: I just got scrollbars to appear by specifying (not shown below) a 
minheight along with the allowGrowY. This was just a desperation hack to 
learn what I could learn. It would seem i need a better way than 
allowGrowY to fight off the Grow layout on the page, but Scroll is 
documented as having a layout that cannot be altered.]

Code looks like this:

processConceptResults: function (e) {
        var ctab = this.conceptTab;
        ctab.setEnabled(true);
       var lbl = new qx.ui.basic.Label().set({
                                rich: true,
                                 allowGrowY: false,
                                content: e.getContent()
        });
        var scroller = new qx.ui.container.Scroll().set({height:200});
        scroller.add(lbl);
        ctab.add(scroller);
        this.tabView.setSelected(ctab);
        lbl.debug("lbl content height"+lbl._getContentHeightForWidth());
        lbl.debug("lbl  height "+lbl.getHeight());
                scroller.debug("scroller height "+scroller.getHeight());
                },

I will try setting the minHeight programmatically to the height for 
width, but that seems wrong. Is there a better way?

cheers, ken

-- 
http://www.theoryyalgebra.com/

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to