Leander Hanwald wrote:
> Hi all,
> 
> I tried the autosize Tabview example but I think that it didn't work
> anymore:
> http://qooxdoo.org/documentation/user_manual/faq#how_to_set_a_qxtabview_autosized
> 
> The result:
> http://www.running-gag.de/qooxdoo_tabproblem.png
> 
> (the original code is broken, it miss two closing ) and should have at
> least the add to document :) )
> 
> What I miss is the border, it seems that the element that draws the
> border is not autoset to the right size, if I set the height and width
> of the tabview manually the border is shown.
> 
> Is there any known solution for that?

We'll wait to hear from the others as to whether this is the intended
behaviour, but my solution is to use:

    var pane = tabs.getPane();
    pane.set({ width:"auto", height: "auto" });

I haven't checked recently, but there may need to be a bit more of an
explanation on this in the API documentation. The Pane is the working
area of the tabview (and has the border drawn around it), and the pages
are its children with only the current one being visible. What we've
done is told the pane to resize to accommodate its children.

Many of the examples make the tabview grow to fill an area so this
doesn't always seem to need to be done.

> 
> Another question when I'm allready asking: Is there a page view without
> tabs? I have a situation where I want to switch between a set of
> elements at one position fast, can a Tabview work without the tabs? (I
> tried it with hidding/showing of boxes, but had problems, mainly by my
> not 100% understanding of qooxdoo  ;) )

Coincidentally I have been doing this this weekend and can show you what
I've done. I have created a 'Pane' class which you pass a page number to
and it shows that one and hides the rest.

(I had a look at the Pane classes in qx.ui.pageview.* and I didn't see
anything that quite suited what I wanted as I think they assume
associated buttons)

Nick


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to